11 lines
214 B
JavaScript
11 lines
214 B
JavaScript
|
/**
|
||
|
* Determine if the passed argument is an integer.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} n
|
||
|
* @category Type
|
||
|
* @return {Boolean}
|
||
|
*/
|
||
|
export default Number.isInteger || function _isInteger(n) {
|
||
|
return n << 0 === n;
|
||
|
};
|