Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
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.