Miss any of our Open RFC calls?Watch the recordings here! »

iterable-any

0.1.7 • Public • Published

iterable-any

NOTE: iterable-any was renamed to @extra-iterable/any. NPM

Check if iterable has any truthy values, like any().

var any = require('iterable-any');
// any(<iterable>, [begin=0], [end])
 
any(new Set([1, 0, 0, '']));
// true
any(new Set([1, 0, 0, '']), 1);
// false
any([1, 0, 0, '', 'a'], 1, 4);
// false

Keywords

Install

npm i iterable-any

DownloadsWeekly Downloads

21

Version

0.1.7

License

MIT

Unpacked Size

1.47 kB

Total Files

3

Last publish

Collaborators

  • avatar