.map() .map() 메서드는 배열 내의 모든 요소 각각에 대하여 주어진 함수를 호출한 결과를 모아 새로운 배열을 반환 Array.prototype.map() - JavaScript | MDN map() 메서드는 배열 내의 모든 요소 각각에 대하여 주어진 함수를 호출한 결과를 모아 새로운 배열을 반환합니다. developer.mozilla.org arr.map(callback(currentValue[ ,index [, array]]) [,thisArg]) 예제는 다음과 같다. const person = [{name:'person1', age:24},{name:'person2', age:29}] const names = person.map(x => x.name); console.log(names) ['..