[refactor] Moved 'roundToTwo' to its own TS file

This commit is contained in:
Steven Evans
2018-07-04 20:22:29 -04:00
parent e16ca2abb5
commit 39c9488768
4 changed files with 13 additions and 10 deletions
-6
View File
@@ -242,11 +242,6 @@ function powerOfTwo(n) {
return n && (n & (n-1)) === 0;
}
//Rounds a number to two decimal places
function roundToTwo(n) {
return +(Math.round(n + "e+2") + "e-2");
}
export {sizeOfObject,
clearObject,
addOffset,
@@ -255,7 +250,6 @@ export {sizeOfObject,
compareArrays,
printArray,
powerOfTwo,
roundToTwo,
clearEventListenersEl,
removeElementById,
removeElement,