Nervously Proposing Marriage

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

    1.0.3 • Public • Published

    is-int8-array

    Determine if a value is Int8Array

    install

    npm i @silen/is-int8-array
    

    api

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

    usage

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

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

    others

    Install

    npm i @silen/is-int8-array

    DownloadsWeekly Downloads

    4

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    8.37 kB

    Total Files

    9

    Last publish

    Collaborators

    • silentsun