add a [Symbol.Iterable] to make the object iterable so that the object can use for of loop the [Symbol.Iterable] is a function, it should return a object includesdone and value Array.from method can return Array.from a arraylike object and iterable object string can be used in array.from as well |
||
---|---|---|
3.5mocha | ||
4.1object | ||
4.4this | ||
4.5constructor | ||
5.4ArrayMethod | ||
5.5Iterables | ||
index.html |