array.at(index)

Benchmark created on


Description

ES2022 feature, new syntax to get item by index

Setup

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

Test runner

Ready to run.

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

Revisions

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