Array.prototype.with
javascriptの機能。
配列のメソッド
非破壊的に配列の一部の値をindexを指定して変更することができる?
用法
arr.with(index, value)
例
code:js
const arr = 1,2,3,4,5
arr.with(2, 6) //