no-op
Exports a function that does nothing.
var noop = require('no-op')
function foobar(cb) {
cb = cb || noop
cb('finished')
}
Usage
noop()
A function that does nothing.
see also
License
MIT, see LICENSE.md for details.
one no-op function to rule them all
Exports a function that does nothing.
var noop = require('no-op')
function foobar(cb) {
cb = cb || noop
cb('finished')
}
noop()
A function that does nothing.
MIT, see LICENSE.md for details.