盘点几个好用是JS

01.数组Array.prototype.map()const arr = [1, 2, 3];const double = x => x * 2;arr.map(double); // [2, 4, 6]