Commit Graph

12 Commits

Author SHA1 Message Date
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
ad51aa4fb9 add some problems 2024-06-16 23:04:25 +02:00
3196f70784 add string.split and arr.join 2024-06-16 21:34:24 +02:00
a5be34f3ab add arr.sort 2024-06-16 21:21:58 +02:00
096d8af2ee add arr.map 2024-06-16 21:03:42 +02:00
14dbb96102 init 2024-06-16 21:02:41 +02:00
e937deceea add 5.4 array 2024-06-16 21:02:11 +02:00
78ebe07977 constructor is a function 2024-06-03 12:16:54 +02:00
1e55406e8f learn this, but not very clear 2024-06-02 15:32:46 +02:00
e9d6b3ad15 4.1 done 2024-06-02 12:22:16 +02:00
b8e26c7703 bdd mocha test method 2024-06-02 12:03:32 +02:00
1662f15f21 init 2024-06-01 11:07:02 +02:00