
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
is-empty-iterable
Advanced tools
Check if an
Iterable
is 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.
$ npm install is-empty-iterable
import isEmptyIterable from 'is-empty-iterable';
isEmptyIterable([]);
//=> true
isEmptyIterable(new Set([1, 2]));
//=> false
Returns a boolean
.
Type: Iterable
FAQs
Check if an Iterable is empty
The npm package is-empty-iterable receives a total of 2,164 weekly downloads. As such, is-empty-iterable popularity was classified as popular.
We found that is-empty-iterable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.