1.0.3 • Published 10 years ago

no-op v1.0.3

Weekly downloads
3,089
License
MIT
Repository
github
Last release
10 years ago

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.