array.prototype.with

An ESnext spec-compliant `Array.prototype.with` shim/polyfill/replacement that works as far down as ES3.