dummy-object
v1.0.0
Published
Recursively provides any objects and functions that do nothing
Downloads
351
Maintainers
Readme
Dummy Object
Was made for providing functions that do nothing but providing the same thing recursively.
const dummy = require('dummy-object');
dummy.was.made('for').doing['nothing'];
dummy().can['be'].used.as('flexible').as.you['d'] = 'like';
As simple as that.
You can get any property from dummy or call any function, it will return the same dummy object, so you can repeat the same as often as you want.
Installation
npm install [(--save|--save-dev)] dummy-object
You can also just copy the following line of code into your ES6 app without downloading this module.
const dummy = new Proxy(() => dummy, { get: () => dummy });