zypeh says to YSITDconst magic = (array) => array.map((idx, el) => { if (idx > 5) return el return el + 1 }) const noMagic = (array) => { let result = [] for (let i = 0; i = array.length; i++) { if (i > 5) result.push(array[i]) else result.push(array[i] + 1) } return result }这样?at Wed, Apr 12, 2017 7:59 PM