filter-xtend

1.1.0 • Public • Published

filter-xtend

locked

Extend like a boss, with filters

xtend is a basic utility library by Raynos which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.

But, this is xtend with filters! Filter-xtend provides the same classic functionality with the ability to filter the individual keys.

Examples

var extend = require("filter-xtend")
 
// extend returns a new object. Does not mutate arguments
var combination = extend({
    a: "a",
    b: "c",
    c: "nope"
}, {
    b: "b"
}, (target, source, key, index) => {return key !== "c"})
// { a: "a", b: "b" }

Stability status: Locked

MIT Licenced

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    2
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i filter-xtend

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • jdvorak