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

2.7.3 • Public • Published

Checks if arrays have no value in common. 🏃 📼 📦 🌔

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

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

array.isDisjointOn(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.isDisjointOn(x, [2, 5]);
// false

array.isDisjointOn(x, [-2, -5]);
// true

array.isDisjointOn(x, [-2, -5], v => Math.abs(v));
// false

references

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @extra-array/is-disjoint-on.min

      Weekly Downloads

      1

      Version

      2.7.3

      License

      MIT

      Unpacked Size

      9.47 kB

      Total Files

      23

      Last publish

      Collaborators

      • wolfram77