Create an iterator which is backed by the provided array, unlike a normal
array iterators where the array cannot be modified function creates
a shallow copy of the array using slice() so that you are free to modify
the original array.
This will still return an iterator if the provided values is null or
undefined which will result in no entries.
Create an iterator which is backed by the provided array, unlike a normal array iterators where the array cannot be modified function creates a shallow copy of the array using
slice()
so that you are free to modify the original array.This will still return an iterator if the provided
values
is null or undefined which will result in no entries.