mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
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;
|
|
};
|