array.at(index) (v3)

Revision 3 of this benchmark created on


Description

ES2022 feature, new syntax to get item by index

Setup

const dataArr = new Array(99999).fill("test-string")

Test runner

Ready to run.

Testing in
TestOps/sec
indexable[index]
console.log(dataArr[dataArr.length -1])
ready
indexable.at(index)
console.log(dataArr.at(-1))
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.