We know that ES 2022 Features are finally out. I am trying to use latest features in my current React - Typescript Project.
One feature that I am currently trying is .at() Method:
const fruitsArray = ['banana', 'apple', 'orange', 'kiwi'];
console.log(fruitsArray.at(-1))
But I am getting TypeError: arr.at is not a function
In tsconfig,json, I changed "module": "esnext" to "module": "es2022". But still it didn't help.
Can someone help me on this please?