Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
IndexOfArray
(version: 0)
Index of
Comparing performance of:
test vs test 2
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var array = ["hello", "tobeFound", "my"];
Tests:
test
!array.includes("tobeFound")
test 2
array.indexOf("tobeFound") !== -1
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
test
test 2
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Not every vs. indexOf
IndexOf vs Includes array of numbers
Javascript Object vs Array.indexOf
index vs lastindexof for Array
Comments
Confirm delete:
Do you really want to delete benchmark?