MCPcopy
hub / github.com/immutable-js/immutable-js / isSubset

Function isSubset

src/CollectionImpl.js:388–391  ·  view source on GitHub ↗
(iter)

Source from the content-addressed store, hash-verified

386 hasIn: hasIn,
387
388 isSubset(iter) {
389 iter = typeof iter.includes === 'function' ? iter : Collection(iter);
390 return this.every((value) => iter.includes(value));
391 },
392
393 isSuperset(iter) {
394 iter = typeof iter.isSubset === 'function' ? iter : Collection(iter);

Callers

nothing calls this directly

Calls 3

CollectionClass · 0.90
everyMethod · 0.80
includesMethod · 0.65

Tested by

no test coverage detected