diff options
Diffstat (limited to 'node_modules/moment/src/lib/utils/abs-ceil.js')
-rw-r--r-- | node_modules/moment/src/lib/utils/abs-ceil.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/moment/src/lib/utils/abs-ceil.js b/node_modules/moment/src/lib/utils/abs-ceil.js new file mode 100644 index 0000000..e4c7bc2 --- /dev/null +++ b/node_modules/moment/src/lib/utils/abs-ceil.js @@ -0,0 +1,7 @@ +export default function absCeil(number) { + if (number < 0) { + return Math.floor(number); + } else { + return Math.ceil(number); + } +} |