2017-10-06 JavaScript 配列要素の書き換えしくじり しくじり items.forEach( item => { item = foo }) 修正 items.forEach( (item, index, arr) => { arr[index] = foo })