Package Exports
- is-empty-iterable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-empty-iterable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-empty-iterable 
Check if an
Iterableis empty
More efficient than Array.from(iterable).length, as it only iterates the first item, which can make a big difference for dynamic iterators, like a Generator doing an expensive operation.
Install
$ npm install is-empty-iterableUsage
const isEmptyIterable = require('is-empty-iterable');
isEmptyIterable([]);
//=> true
isEmptyIterable(new Set([1, 2]));
//=> falseAPI
isEmptyIterable(iterable)
Returns a boolean.
iterable
Type: Iterable
License
MIT © Sindre Sorhus