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

    no-op

    1.0.3 • Public • Published

    no-op

    locked

    Exports a function that does nothing.

    var noop = require('no-op')
     
    function foobar(cb) {
        cb = cb || noop
        cb('finished')
    }

    Usage

    NPM

    noop()

    A function that does nothing.

    see also

    License

    MIT, see LICENSE.md for details.

    Install

    npm i no-op

    DownloadsWeekly Downloads

    1,967

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • avatar