object-trim

0.0.2-1 • Public • Published

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

/object-trim/

    Package Sidebar

    Install

    npm i object-trim

    Weekly Downloads

    118

    Version

    0.0.2-1

    License

    MIT

    Last publish

    Collaborators

    • taterbase