main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
364 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var isObject = require('../internals/is-object');
|
---|
3 |
|
---|
4 | var floor = Math.floor;
|
---|
5 |
|
---|
6 | // `IsIntegralNumber` abstract operation
|
---|
7 | // https://tc39.es/ecma262/#sec-isintegralnumber
|
---|
8 | // eslint-disable-next-line es/no-number-isinteger -- safe
|
---|
9 | module.exports = Number.isInteger || function isInteger(it) {
|
---|
10 | return !isObject(it) && isFinite(it) && floor(it) === it;
|
---|
11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.