source:
node_modules/ramda/src/internal/_isInteger.js@
d24f17c
Last change on this file since d24f17c was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 216 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | /** |
2 | * Determine if the passed argument is an integer. | |
3 | * | |
4 | * @private | |
5 | * @param {*} n | |
6 | * @category Type | |
7 | * @return {Boolean} | |
8 | */ | |
9 | module.exports = Number.isInteger || function _isInteger(n) { | |
10 | return n << 0 === n; | |
11 | }; |
Note:
See TracBrowser
for help on using the repository browser.