array.prototype.with

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

ends-with

Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.