var ys = map(xs, f). Create a new array ys by applying f(xs[i], i, xs) to each element in xs at index i . install. With npm do: npm install array-map ...
確定! 回上一頁