ES2023 introduced toSorted, toReversed, toSpliced , with, and findLast and findLastIndex methods on Array.prototype,
Node.js 18 and 19 only support findLast and findLastIndex, and don't support toSorted and others
node18 and node19 bases both specify es2023 lib
https://github.com/tsconfig/bases/blob/5ee68ffc8325546335649525a3553067d2d27830/bases/node18.json
https://github.com/tsconfig/bases/blob/5ee68ffc8325546335649525a3553067d2d27830/bases/node19.json
I suspect nothing can be really done about this?
ES2023 introduced
toSorted,toReversed,toSpliced,with, andfindLastandfindLastIndexmethods on Array.prototype,Node.js 18 and 19 only support findLast and findLastIndex, and don't support toSorted and others
node18 and node19 bases both specify es2023 lib
https://github.com/tsconfig/bases/blob/5ee68ffc8325546335649525a3553067d2d27830/bases/node18.json
https://github.com/tsconfig/bases/blob/5ee68ffc8325546335649525a3553067d2d27830/bases/node19.json
I suspect nothing can be really done about this?