mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
15 lines
298 B
TypeScript
15 lines
298 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_isInteger.js
|
|
|
|
|
|
/**
|
|
* 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;
|
|
};
|