# 06. from method

# ✨ from

function addMark() {
  console.log(typeof(arguments));
  
  let newArray = Array.from(arguments); // object의 value를 배열화해준다.
  let newData = newArray.map(function(value) {
    return value + "!";
  })
  
  console.log(newData);
}

addMark(1,2,3,4,5);

# 🔎 console


"object" // arguments 타입
["1!", "2!", "3!", "4!", "5!"] 

# Reference


https://www.inflearn.com/course/es6-강좌-자바스크립트/dashboard (opens new window)

https://jsbin.com/ (opens new window)

Last Updated: 3/8/2024, 5:46:31 AM