Nefariously Pushing Master

    noop3

    1000.0.0 • Public • Published


    noop3


    ◻️ Supreme nothingness

    Build Status Coverage Status

    Install

    $ npm install noop3
    

    Usage

    const noop = require('noop3');
     
    function unicorn(fn) {
        fn = fn || noop;
        return fn('unicorn');
    }
    unicorn();
     
    // Also compatible with non-mythical single horned creatures
    function narwhal(fn) {
        fn = fn || noop;
        return fn('narwhal');
    }
    narwhal();
     
    // Using the noop factory
    const fn = require('noop3/factory');
    const rainbow = fn();
    const flowers = fn();
    console.log(rainbow === flowers);
    //=> false
     
    rainbow();
    //=> undefined

    Related

    License

    MIT © Sindre Sorhus

    Install

    npm i noop3

    DownloadsWeekly Downloads

    34

    Version

    1000.0.0

    License

    MIT

    Unpacked Size

    3.03 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus