isArray?

Benchmark created on


Description

Test runner

Ready to run.

Testing in
TestOps/sec
Array.isArray
Array.isArray([])
ready
instanceof
[] instanceof Array
ready
constructor
[].constructor === Array
ready
Object.getPrototypeOf
Object.getPrototypeOf([]) === Array.prototype
ready
Object.prototype.toString
Object.prototype.toString.call([]) === "[object Array]"
ready

Revisions

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