2.2.30 • Published 6 years ago

@extra-iterable/difference-on v2.2.30

Weekly downloads
116
License
MIT
Repository
github
Last release
6 years ago

Gives values of an iterable not present in another. :running: :package: :ledger:

Alternatives: compare, map. This is part of package extra-iterable.

iterable.differenceOn(x, y, [fn], [ths]);
// x:   an iterable
// y:   another iterable
// fn:  map function (v, i, x)
// ths: this argument
const iterable = require('extra-iterable');

var x = [1, 2, 3, 4, 5];
var y = [2, 4];
[...iterable.differenceOn(x, y)];
// [ 1, 3, 5 ]

var y = [-2, -4];
[...iterable.differenceOn(x, y)];
// [ 1, 2, 3, 4, 5 ]

[...iterable.differenceOn(x, y, v => Math.abs(v))];
// [ 1, 3, 5 ]

references

2.2.30

6 years ago

2.2.17

6 years ago

2.2.18

6 years ago

2.2.15

6 years ago

2.2.13

6 years ago

2.2.14

6 years ago

2.2.11

6 years ago

2.2.12

6 years ago

2.2.10

6 years ago

2.2.19

6 years ago

2.2.28

6 years ago

2.2.29

6 years ago

2.2.26

6 years ago

2.2.27

6 years ago

2.2.24

6 years ago

2.2.25

6 years ago

2.2.22

6 years ago

2.2.23

6 years ago

2.2.20

6 years ago

2.2.21

6 years ago

2.2.9

6 years ago

2.2.7

6 years ago

2.2.8

6 years ago

2.2.5

6 years ago

2.2.6

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.1

6 years ago

2.2.2

6 years ago

2.2.0

6 years ago

2.1.74

6 years ago

2.1.73

6 years ago

2.1.69

6 years ago

2.1.67

6 years ago

2.1.68

6 years ago

2.1.65

6 years ago

2.1.66

6 years ago

2.1.63

6 years ago

2.1.64

6 years ago

2.1.72

6 years ago

2.1.70

6 years ago

2.1.71

6 years ago

2.1.62

6 years ago

2.1.58

6 years ago

2.1.59

6 years ago

2.1.56

6 years ago

2.1.57

6 years ago

2.1.55

6 years ago

2.1.61

6 years ago

2.1.60

6 years ago

2.1.54

6 years ago

2.1.53

6 years ago

2.1.52

6 years ago

2.1.51

6 years ago

2.1.50

6 years ago

2.1.49

6 years ago

2.1.47

6 years ago

2.1.48

6 years ago

2.1.46

6 years ago

2.1.45

6 years ago

2.1.44

6 years ago

2.1.43

6 years ago

2.1.41

6 years ago

2.1.42

6 years ago

2.1.40

6 years ago

2.1.38

6 years ago

2.1.39

6 years ago

2.1.36

6 years ago

2.1.37

6 years ago

2.1.34

6 years ago

2.1.35

6 years ago

2.1.27

6 years ago

2.1.28

6 years ago

2.1.25

6 years ago

2.1.26

6 years ago

2.1.24

6 years ago

2.1.23

6 years ago

2.1.22

6 years ago

2.1.21

6 years ago

2.1.20

6 years ago

2.1.19

6 years ago

2.1.18

6 years ago

2.1.17

6 years ago

2.1.16

6 years ago

2.1.9

6 years ago

2.1.14

6 years ago

2.1.15

6 years ago

2.1.12

6 years ago

2.1.13

6 years ago

2.1.10

6 years ago

2.1.11

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.3

6 years ago

2.1.5

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.0.50

6 years ago

2.1.0

6 years ago

2.0.48

6 years ago

2.0.49

6 years ago

2.0.46

6 years ago

2.0.47

6 years ago

2.0.44

6 years ago

2.0.45

6 years ago

2.0.42

6 years ago

2.0.43

6 years ago

2.0.40

6 years ago

2.0.38

6 years ago

2.0.39

6 years ago

2.0.37

6 years ago

2.0.35

6 years ago

2.0.36

6 years ago

2.0.34

6 years ago

2.0.33

6 years ago