MCPcopy
hub / github.com/tdewolff/minify / absRound

Function absRound

_benchmarks/sample_moment.js:3259–3265  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

3257 }
3258
3259 function absRound(number) {
3260 if (number < 0) {
3261 return Math.round(-1 * number) * -1;
3262 } else {
3263 return Math.round(number);
3264 }
3265 }
3266
3267 // compare two arrays, return the number of differences
3268 function compareArrays(array1, array2, dontConvert) {

Callers 2

createDurationFunction · 0.70
addSubtractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…