const isArray vs Array.isArray

Benchmark created on


Setup

const isArray = Array.isArray;
const test = Array(4).fill(null);

Test runner

Ready to run.

Testing in
TestOps/sec
isArray
isArray(test);
ready
Array.isArray
Array.isArray(test)
ready

Revisions

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