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

Function toInt

_benchmarks/sample_moment.js:809–818  ·  view source on GitHub ↗
(argumentForCoercion)

Source from the content-addressed store, hash-verified

807 }
808
809 function toInt(argumentForCoercion) {
810 var coercedNumber = +argumentForCoercion,
811 value = 0;
812
813 if (coercedNumber !== 0 && isFinite(coercedNumber)) {
814 value = absFloor(coercedNumber);
815 }
816
817 return value;
818 }
819
820 var tokens = {};
821

Callers 8

addParseTokenFunction · 0.70
sample_moment.jsFile · 0.70
setMonthFunction · 0.70
isDurationValidFunction · 0.70
compareArraysFunction · 0.70
offsetFromStringFunction · 0.70
createDurationFunction · 0.70
parseMsFunction · 0.70

Calls 1

absFloorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…