source:
node_modules/ramda/src/internal/_isInteger.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 216 bytes |
Line | |
---|---|
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.