Array.map()
2019.07.31
https://www.w3schools.com/jsref/jsref_map.asp JavaScript Array map() Method JavaScript Array map() Method ❮ JavaScript Array Reference Example Return an array with the square root of all the values in the original array: var numbers = [4, 9, 16, 25]; var x = numbers.map(Math.sqrt) document.getElementById("demo").innerHTML = x; The www.w3schools.com Array의 각 요소를 반복하면서 콜백함수를 실행합니다. return 되는값은 배열로..