No operation as a module™. The long awaited successor to noop
. Noop2
does even less than its predecessor, and is 100% tested to guarantee nothing
happens.
npm install noop2
var noop = require('noop2');
noop();
// nothing happened
This is both a joke and actually useful. Obviously we might be taking npm a bit too far by bundling this as a module, but when running tests it's sometimes nice to be able to import an empty function if only to keep style consistent. So here you have it.