iterable-iterator/cardinality

View on GitHub
src/api/isEmpty.js

Summary

Maintainability
A
0 mins
Test Coverage
import eq from '../core/eq.js';

/**
 * Returns whether input iterable is empty.
 *
 * @param {Iterable} iterable
 * @return {boolean}
 */
const isEmpty = (iterable) => eq(0, iterable);
export default isEmpty;