universal-thing
v1.0.0
Published
Create a universal object for mocking, testing, place holding, or other experimentation
Downloads
114
Readme
Universal Thing
npm install universal-thingimport createThing from 'univeral-thing'
const thing = createThing([handler])Create a thing that you can use universally. Can be called, awaited, assigned to, iterated over, etc. Provide an optional handler to observe actions taken on the thing and its descendants and change return results. Inspect the results with createThing.logSymbol
