123456789101112131415161718192021222324252627282930313233343536 |
- var toFinite = require('./toFinite');
- function toInteger(value) {
- var result = toFinite(value),
- remainder = result % 1;
- return result === result ? (remainder ? result - remainder : result) : 0;
- }
- module.exports = toInteger;
|