July 23, 2020
function addMark(){ let newData = []; newData = Array.from(arguments).map(res => { return res+'!'; }) console.log(newData) // ['1!', '2!', '3!', '4!', '5!'] } addMark(1,2,3,4,5);
🚀GitHub