Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

no-op

mattdesl24.1kMIT1.0.3

one no-op function to rule them all

noop, no, op, nil, no-op, operation, empty, pass, nothing, func, function

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.