0.1.2 • Published 6 years ago

function-noop v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

function-noop

NPM

Do nothing and get undefined, like _.noop.

const noop = require('function-noop');
// noop()

noop(1, 2);
// undefined
[1, 2].map(noop);
// [undefined, undefined]
new Promise((fres, frej) => frej()).then(() => console.log('ok'), noop);
// (promise rejection caught)
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago