source:
trip-planner-front/node_modules/core-js/internals/is-integer.js
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 274 bytes |
Line | |
---|---|
1 | var isObject = require('../internals/is-object'); |
2 | |
3 | var floor = Math.floor; |
4 | |
5 | // `Number.isInteger` method implementation |
6 | // https://tc39.es/ecma262/#sec-number.isinteger |
7 | module.exports = function isInteger(it) { |
8 | return !isObject(it) && isFinite(it) && floor(it) === it; |
9 | }; |
Note:
See TracBrowser
for help on using the repository browser.