1.3.1 • Published 7 years ago

true-noop v1.3.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

true-noop

npm XO code style Build Status codecov

The only true 'no operation' module out there.

Installation

npm install --save true-noop

Usage

let noop = require('true-noop');

noop();

What makes this a true 'no operation' function?

While other 'no-op' modules actually go ahead and create then return a new function, e.g.

module.exports = function() {}

module.exports = () => () => {};

true-noop exploits the fact that Function.prototype is in itself a function that does nothing and returns undefined.

module.exports = Function.prototype;

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago