stamp-utils
stamp-utils copied to clipboard
stamps to implement
The following are utility stamp good to have implemented.
- [ ]
selfAware
- the.getStamp()
on object instances. - [ ]
ctor
/instanceOf
- addconstructor
propertiy forinstanceof
operator to work. - [ ]
mutate
(?) - will mutate the given agument, likemutatingStamp(obj)
returns theobj
but decorated with new data according to stamp descriptor:mutatingStamp(obj) === obj
- [ ]
cloneable
- adds.clone()
to object instances. - [ ]
namespaced
- a stamp with static property.nest()
:
var twoNested = nestable.nest({ db: dbStamp }).nest({ queue: queueStamp });
var instance = twoNested({ db: databaseConfiguration, queue: queueConfiguration });
- [ ]
methods
- [ ]
props
- [ ]
deepProps
- [ ]
staticProps
- [ ]
deepStaticProps
- [ ]
convertConstructor
- should work with both ES5 and ES6 classes. - [ ]
overrides
- takes stamp first argument (options
) and assigns to instances as regular properties.