Algorithm/Problems_Solving

배열(Array) - 배열고차함수

yunajoe 2022. 12. 9. 08:18

Array.prototype.sort

 

 

Array.prototype.forEach

arr.forEach(func(value, index, array))


value : 현재 순회 중인 요소
index : 현재 순회 중인 요소의 index
array : 배열 객체