@silen/is-int32-array
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    is-int32-array

    Determine if a value is Int32Array

    install

    npm i @silen/is-int32-array
    

    api

    • declare function isInt32Array(val: any): boolean;

    usage

    const { isInt32Array } = require('@silen/is-int32-array');
    // or
    import { isInt32Array } from '@silen/is-int32-array';
    
    console.log(isInt32Array(new Buffer(4)));
    console.log(isInt32Array(Buffer.alloc(4)));
    console.log(isInt32Array(undefined));
    console.log(isInt32Array(null));
    console.log(isInt32Array(''));
    console.log(isInt32Array(true));
    console.log(isInt32Array(0));
    console.log(isInt32Array(1));
    console.log(isInt32Array(1.0));
    console.log(isInt32Array('string'));
    console.log(isInt32Array({}));
    console.log(isInt32Array(function foo() {}));
    console.log(isInt32Array(Symbol()));
    console.log(isInt32Array(new Set));
    console.log(isInt32Array(new Map));
    console.log(isInt32Array(new WeakMap));
    console.log(isInt32Array(new WeakSet));
    
    // or
    console.log(window.Type.isInt32Array(new WeakSet));

    This is a demo for testing the usage of isInt32Array from @silen/is-int32-array module. You can try the others and do likewise.

    others

    Install

    npm i @silen/is-int32-array

    DownloadsWeekly Downloads

    4

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    8.43 kB

    Total Files

    9

    Last publish

    Collaborators

    • silentsun