Skip to content

mattdesl/no-op

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

one no-op function to rule them all

Resources

License

Stars

Watchers

Forks

Packages

No packages published