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

Function absFloor

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

Source from the content-addressed store, hash-verified

679 }
680
681 function absFloor(number) {
682 if (number < 0) {
683 // -0 -> 0
684 return Math.ceil(number) || 0;
685 } else {
686 return Math.floor(number);
687 }
688 }
689
690 function toInt(argumentForCoercion) {
691 var coercedNumber = +argumentForCoercion,

Callers 5

toIntFunction · 0.85
diffFunction · 0.85
bubbleFunction · 0.85
weeksFunction · 0.85
toISOString$1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected