js-object-enhancements
==========
Introduction
============
Functions included
var object = ; // proper typeof implementationobject: String // loop an object, like forEachobjectobject // recursive clone the object, no only the structure also the valuesobject: Mixed // merge two objects recursive.// to merge only existing keys in from object: must_exists = true// to also clone values: clone = trueobject: Object // combine two arrays into an object given keys-valuesobject: Object // extract from an object given keys// extract return an object with all keys given, if not found in obj will return default_valueobject: Object // check if an object don't have any key-valueobject: Boolean // tell you how depth is the object structure// note: also loop arraysobject: Number // sort object keys, so in loop will be sortedobject // recursive filter an object (sync!)object: Object // create a new object with keys prefixedobject: Object // create a new object with removing the prefix from keys (if exists)object: Object // Computes the difference of objects with additional index checkobject: Object // compatibility layer for old browsersObjectkeys // what you expect, get all enumerable keysObjectdefineProperty // throws in case of setter/getterObjectseal // just do nothing
Install
==========
With npm do:
npm install object-enhancements
test (travis-ci ready!)
==========================
npm test
// or
cd /test
node test.js
license
==========
MIT.