1.1.13 • Published 2 days ago

@womorg/illo-earum-eveniet v1.1.13

Weekly downloads
-
License
MIT
Repository
github
Last release
2 days ago

@womorg/illo-earum-eveniet Version Badge

github actions coverage License Downloads

npm badge

ES Proposal spec-compliant shim for Set.prototype.isDisjointFrom. Invoke its "shim" method to shim Set.prototype.isDisjointFrom if it is unavailable or noncompliant.

This package implements the es-shim API interface. It works in an ES3-supported environment, and complies with the proposed spec. When shimmed, it uses es-set to shim the Set implementation itself if needed.

Most common usage:

var assert = require('assert');
var isDisjointFrom = require('@womorg/illo-earum-eveniet');

var set1 = new Set([1, 2]);
var set2 = new Set([2, 3]);
var set3 = new Set([1]);

assert.equal(isDisjointFrom(set1, set2), false);
assert.equal(isDisjointFrom(set2, set1), false);
assert.equal(isDisjointFrom(set1, set3), false);
assert.equal(isDisjointFrom(set2, set3), true);
assert.equal(isDisjointFrom(set3, set2), true);

isDisjointFrom.shim();

assert.equal(set1.isDisjointFrom(set2), false);
assert.equal(set2.isDisjointFrom(set1), false);
assert.equal(set1.isDisjointFrom(set3), false);
assert.equal(set2.isDisjointFrom(set3), true);
assert.equal(set3.isDisjointFrom(set2), true);

Tests

Simply clone the repo, npm install, and run npm test

Set Method Packages

1.1.13

2 days ago

1.1.12

3 days ago

1.1.11

4 days ago

1.1.10

5 days ago

1.1.9

6 days ago

1.1.8

7 days ago

1.1.7

8 days ago

1.1.6

9 days ago

1.1.5

10 days ago

1.1.4

11 days ago

1.1.3

12 days ago

1.1.2

13 days ago

1.1.1

14 days ago

1.1.0

15 days ago

1.0.0

16 days ago