array-values

Get value iterator of array, like Array.values().

Usage no npm install needed!

<script type="module">
  import arrayValues from 'https://cdn.skypack.dev/array-values';
</script>

README

array-values

NOTE: array-values was renamed to @extra-array/values. NPM

Get value iterator of array, like Array.values().

const values = require('array-values');
// values(<array>, [begin=0], [end])
// -> <iterator>

var a = ['l', 'y', 'o', 'k', 'o'];
values(a);
// Iterator {'l', 'y', 'o', 'k', 'o'}
values(a, 1);
// Iterator {'y', 'o', 'k', 'o'}
values(a, 1, 4);
// Iterator {'y', 'o', 'k'}