This package has been deprecated

Author message:

this package has been deprecated

noop4

1.2.0 • Public • Published

noop4

No operation avoiding references.

NPM Version NPM Downloads License

Install

$ npm install noop4 --save

Usage

Nothing happens and no references are created.

var noop = require('noop4');
 
function example (fn) {
  fn = fn || noop();
  return fn('beep');
}
 
example();
// nothing happened

Why?

Sometimes the noop method is enriched with methods and properties. To ensure a clean usage noop4 creates a new function each time avoiding previous references.

See also

License

MIT

/noop4/

    Package Sidebar

    Install

    npm i noop4

    Weekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • gabrieleds