Map 與Set 都是像字串跟陣列這樣可以被尋訪的類型,也就是說可以使用for 迴圈去一個一個查找跟操作他們的值。 ... let set = new Set([1,2,3,'Hello','World',true]).
確定! 回上一頁