Length Check Test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
T1
var a = [];


if (Array.isArray(a) && a.length) {
	Console.log("Test");
}
ready
T2
var a = [];


if (Array.isArray(a) && a.length > 0) {
	Console.log("Test");
}
ready
T3
var a = [];


if (Array.isArray(a) && a.length !== 0) {
	Console.log("Test");
}
ready

Revisions

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