Iterator extensions
import { extend } from 'jsmodern';
import {
isAsyncIterator,
isIterator,
} from 'jsmodern/dist/iterator.js';
extend({
iterator: [
isAsyncIterator,
isIterator,
],
});
console.log([
isAsyncIterator,
isIterator,
].every(n => 'function' === typeof(n)));
Check out API Reference.
MIT License © Rong Sen Ng