construct-iterator

Utilities to create synchronous/asynchronous iterators from a next() -> { done, value }

Usage no npm install needed!

<script type="module">
  import constructIterator from 'https://cdn.skypack.dev/construct-iterator';
</script>

README

Constructor Iterator

Utilities to create synchronous/asynchronous iterators from a next() -> { done, value }

License

MIT © Hoàng Văn Khải