propertify

Propertify given object

Propertify given object by applying property to each property.

$ npm install propertify
propertify = require('propertify')
 
obj = propertify({ foo: 'bar', span: 'eggs' })
 
obj.foo()
// => 'bar' 
 
obj.span()
// => 'eggs 
 
obj.foo('strange')
 
obj.foo()
// => 'strange'