Neighbourhood Party Manager
    Wondering what’s next for npm?Check out our public roadmap! »

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

    1.0.3 • Public • Published

    is-uint8-clamped-array

    Determine if a value is Uint8ClampedArray

    install

    npm i @silen/is-uint8-clamped-array
    

    api

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

    usage

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

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

    others

    Install

    npm i @silen/is-uint8-clamped-array

    DownloadsWeekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    8.84 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar