Nice Paintings, Mondrian

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

    1.0.3 • Public • Published

    is-arguments

    Determine if a value is Arguments

    install

    npm i @silen/is-arguments
    

    api

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

    usage

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

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

    others

    Install

    npm i @silen/is-arguments

    DownloadsWeekly Downloads

    7

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    8.36 kB

    Total Files

    9

    Last publish

    Collaborators

    • silentsun