Skip to content

Instantly share code, notes, and snippets.

@jorendorff
Created January 6, 2012 21:17
Show Gist options
  • Save jorendorff/1572446 to your computer and use it in GitHub Desktop.
Save jorendorff/1572446 to your computer and use it in GitHub Desktop.
test case
function f() {
var a = [1, 0.5, 1];
var b;
for (var j = 0; j < a.length; j++) {
var z = -a[j];
if (b === undefined || z < b)
b = z;
}
}
f();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment