object-trim

Trim your objects down

npm install object-trim
4 downloads in the last week
10 downloads in the last month

Object Trim

Sometimes objects are too big...

Usage

var objectTrim = require('object-trim');

var obj = {
  "this": "Object",
  "is" : "just",
  "too": "darn",
  "big": "ya know?"
};

var newObj = objectTrim(obj, 2);  // { "this": "Object", "is": "just" }

License

MIT

npm loves you