0.0.1 • Published 12 years ago
fuzzy-object v0.0.1
fuzzy-object
fuzzy object
Installation
Install with component(1):
$ component install yields/fuzzy-objectAPI
FuzzyObject(obj)
Initialize new FuzzyObject with obj.
get(path)
Get path's value within object.
obj = fuzzy({ a: { b: { C: 'c' } }, b: 'b' });
obj.fns = [lowercase];
obj.get('a.b.c'); // => 0remove(path)
Delete path's value within the object.
obj.remove('a.b.c'); // => true
obj.get('a.b.c'); // => nullrename(names)
Rename object's keys.
obj.rename({
a: 'a.b.c'
});
// => { a: 'c', b: 'b' }License
MIT
0.0.1
12 years ago