array.at(index)

Benchmark created on


Setup

const dataArr = new Array(9999).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.