题解 | #查找重复元素#
求二次方
http://www.nowcoder.com/practice/b7a8647e33d84f5c88acdd7c81a85fdf
function square(arr) {
let newArr = arr
console.log(newArr);
return newArr.map((item) => {
return item * item
})
}