Commit Graph

2 Commits

Author SHA1 Message Date
9def6b47ed update arraymethod and ieteratbles 2024-06-21 22:04:48 +02:00
d9bba74979 Iterables:
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
2024-06-18 00:11:16 +02:00