-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Milestone
Description
The following are utility stamp good to have implemented.
-
selfAware- the.getStamp()on object instances. -
ctor/instanceOf- addconstructorpropertiy forinstanceofoperator to work. -
mutate(?) - will mutate the given agument, likemutatingStamp(obj)returns theobjbut 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.