According to:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSpliced
the method .toSpliced() is now available in all major JS platforms. But as you can see here:
Even with TS 5.3.0-beta its type is not defined in TypeScript.
>Solution :
To use toSpliced, you need to set target to ESNext (for now, until there’s an ES2023 setting). Your playground targets ES2017, which wouldn’t support toSpliced or anything else from ES2018 onward. You also need to be using a fairly recent version of TypeScript (for instance, 5.1.6 doesn’t support it, but 5.2.2 does; I don’t know precisely where in there it was added).
