@extra-iterable/callable.min

Gives a function that iterates over values. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Usage no npm install needed!

<script type="module">
  import extraIterableCallableMin from 'https://cdn.skypack.dev/@extra-iterable/callable.min';
</script>

README

Gives a function that iterates over values. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Similar: callable, fromCall.

This is part of package extra-iterable.

This is browserified, minified version of @extra-iterable/callable.
It is exported as global variable iterable_callable.
CDN: unpkg, jsDelivr.


iterable.callable(x);
// x: an iterable
const iterable = require("extra-iterable");

var x = [1, 2, 3, 4];
var f = iterable.callable(x);

for(var i=0; i<8; i++)
  console.log(f());
// 1
// 2
// 3
// 4
// undefined
// undefined
// undefined
// undefined


References