no-op

one no-op function to rule them all

  • no-op

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
no-op
1421.0.38 years ago8 years agoMinified + gzip package size for no-op in KB

Readme

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.