dummy-object

Recursively provides any objects and functions that do nothing

Usage no npm install needed!

<script type="module">
  import dummyObject from 'https://cdn.skypack.dev/dummy-object';
</script>

README

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