Naughty Praying Mantis

    @1k/is-native
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.3 • Public • Published

    @1k/is-native

    Test if a value is a native function.

    Usage

    npm i @1k/is-native
    # yarn add @1k/is-native
    const { isNative } = require('@1k/is-native')
    console.log(isNative(Math.abs)) // true
    console.log(isNative(() => void 0)) // false
    console.log(isNative(1)) // false
    console.log(isNative(NaN)) // false
    <script src='https://unpkg.com/@1k/is-native'></script>
    <script>
    const { isNative } = OneK
    console.log(isNative(Math.abs)) // true
    console.log(isNative(() => void 0)) // false
    console.log(isNative(1)) // false
    console.log(isNative(NaN)) // false
    </script>

    License

    MIT © Script Power

    Install

    npm i @1k/is-native

    DownloadsWeekly Downloads

    5

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    2.57 kB

    Total Files

    8

    Last publish

    Collaborators

    • scriptpower