1 2 3 4 5 6 7
function f(x, y) { return (y | 0 && x ? y | 0 : 0) } m = [1] assertEq(f(m[0], m[0]), 1) assertEq(f(m[1], m[0]), 0) assertEq(f(m[2], m[0]), 0)