1.1.1 • Published 5 years ago

@extra-iterable/contains v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Check if an iterable contains another iterable.

var contains = require('@extra-iterable/contains');
// contains(<iterable>, <another iterable>)

var a = ['h', 'o', 'm', 'e'];
contains(a, ['h', 'o', 'm', 'e', 's']);
// false
contains(a, ['o', 'm']);
// true
contains(a, ['m', 'o']);
// false
contains(a, []);
// true

extra-iterable