UNPKG

@extra-array/splice-update

Version:

Removes or replaces existing values.

7 lines (6 loc) 133 B
'use strict'; function splice$(x, i, n = x.length - i, ...vs) { x.splice(i, n, ...vs); return x; } module.exports = splice$;