陣列與物件
操作
遍尋陣列的方法
for迴圈
forEach
for-in
for-of
Object.entries()
ARRAY對象
Array.prototype.push()/pop()
entries
常與for-of做使用
map
filer
reduce
reduce範例
計算相同元素數量並以物件鍵值顯示 這個範例就很像是把array變成累積map去做計算便回傳拿到結果
Array.prototype.every()
Array.prototype.some()
Array.prototype.includes()
Last updated