This commit is contained in:
8
node_modules/licia/toInt.js
generated
vendored
Normal file
8
node_modules/licia/toInt.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
var toNum = require('./toNum');
|
||||
exports = function(val) {
|
||||
if (!val) return val === 0 ? val : 0;
|
||||
val = toNum(val);
|
||||
return val - (val % 1);
|
||||
};
|
||||
|
||||
module.exports = exports;
|
||||
Reference in New Issue
Block a user