npm.io
1.0.3 • Published 11 years ago

no-op

Licence
MIT
Version
1.0.3
Deps
0
Vulns
0
Weekly
0
Stars
17

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.