@1k/is-nan 中文文档教程
@1k/is-nan
测试值是否为 NaN
Usage
npm i @1k/is-nan
# yarn add @1k/is-nan
const OneK = require('@1k/is-nan')
console.log(isNaN('abc')) // true
console.log(OneK.isNaN('abc')) // false
console.log(OneK.isNaN(1)) // false
console.log(OneK.isNaN(NaN)) // true
<script src='https://unpkg.com/@1k/is-nan'></script>
<script>
console.log(isNaN('abc')) // true
console.log(OneK.isNaN('abc')) // false
console.log(OneK.isNaN(1)) // false
console.log(OneK.isNaN(NaN)) // true
</script>
License
MIT © Script Power
@1k/is-nan
Test whether value is NaN
Usage
npm i @1k/is-nan
# yarn add @1k/is-nan
const OneK = require('@1k/is-nan')
console.log(isNaN('abc')) // true
console.log(OneK.isNaN('abc')) // false
console.log(OneK.isNaN(1)) // false
console.log(OneK.isNaN(NaN)) // true
<script src='https://unpkg.com/@1k/is-nan'></script>
<script>
console.log(isNaN('abc')) // true
console.log(OneK.isNaN('abc')) // false
console.log(OneK.isNaN(1)) // false
console.log(OneK.isNaN(NaN)) // true
</script>
License
MIT © Script Power