JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11019301
  • Score
    100M100P100Q215547F
  • License MIT

Filter object keys and values into a new object

Package Exports

  • filter-obj

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (filter-obj) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

filter-obj Build Status

Filter object keys and values into a new object

Install

$ npm install --save filter-obj

Usage

var filterObj = require('filter-obj');

var obj = {
    foo: true,
    bar: false
};

var newObject = filterObj(obj, function (key, value, object) {
    return value === true;
});
//=> {foo: true}
  • map-obj - Map object keys and values into a new object
  • object-assign - Copy enumerable own properties from one or more source objects to a target object

License

MIT © Sindre Sorhus