Multiply elements by its weight and create new array. weight = function(arr) {. return [].concat(...arr.map((obj) => Array(Math.ceil(obj.weight ...
確定! 回上一頁