JS: add test case

This commit is contained in:
Asger F
2018-11-27 16:36:09 +00:00
parent d69e584cc2
commit 959776b775

View File

@@ -0,0 +1,9 @@
function f(arr) {
if (arr.length > 2) {} // OK
let x = arr.length || 0;
if (x > 2) {} // OK
let y = arr.length && 3;
if (y > 2) {} // OK
}