dummy-object

1.0.0 • Public • Published

Dummy Object

npm

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 });

Package Sidebar

Install

npm i dummy-object

Weekly Downloads

66

Version

1.0.0

License

none

Last publish

Collaborators

  • sk22