2.2.5 • Published 5 years ago

@extra-object/difference-update v2.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Gives entries of object not present in another. :running: :package: :ledger:

Alternatives: difference, difference$. Similar: union, intersection, difference, symmetricDifference, isDisjoint. This is part of package extra-object.

object.difference$(x, y);
// x: an object (updated)
// y: another object
// --> x
const object = require('extra-object');

var x = {a: 1, b: 2, c: 3, d: 4, e: 5};
var y = {b: 2, d: 4};
object.difference$(x, y);
// { a: 1, c: 3, e: 5 }

x;
// { a: 1, c: 3, e: 5 }

var x = {a: 1, b: 2, c: 3, d: 4, e: 5};
var y = {b: -2, d: -4};
object.difference$(x, y);
// { a: 1, c: 3, e: 5 }

references

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.2.2

5 years ago

2.1.23

5 years ago

2.1.21

5 years ago

2.1.22

5 years ago

2.1.20

5 years ago

2.1.19

5 years ago

2.1.18

5 years ago

2.1.17

5 years ago