MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / absRound

Function absRound

tests/test_code/js/moment/moment.js:3179–3185  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

3177 }
3178
3179 function absRound(number) {
3180 if (number < 0) {
3181 return Math.round(-1 * number) * -1;
3182 } else {
3183 return Math.round(number);
3184 }
3185 }
3186
3187 // compare two arrays, return the number of differences
3188 function compareArrays(array1, array2, dontConvert) {

Callers 2

createDurationFunction · 0.85
addSubtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected