@extra-array/union-on.min
TypeScript icon, indicating that this package has built-in type declarations

2.7.8 • Public • Published

Gives values present in any array. 🏃 📼 📦 🌔

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

This is browserified, minified version of @extra-array/union-on.
It is exported as global variable array_unionOn.
CDN: unpkg, jsDelivr.

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

var x = [1, 2, 3, 4];
array.unionOn(x, [2, 3, 5]);
// [1, 2, 3, 4, 5]

var x = [1, 2, 3, 4];
array.unionOn(x, [-2, -3, -5], v => Math.abs(v));
// [1, 2, 3, 4, -5]

references

Package Sidebar

Install

npm i @extra-array/union-on.min

Weekly Downloads

6

Version

2.7.8

License

MIT

Unpacked Size

12.2 kB

Total Files

29

Last publish

Collaborators

  • wolfram77