Skip to content

Instantly share code, notes, and snippets.

@michaelficarra
Created December 18, 2010 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelficarra/746847 to your computer and use it in GitHub Desktop.
Save michaelficarra/746847 to your computer and use it in GitHub Desktop.
950
for x, index in [1, 2, 3]
console.log index
index++
var index, x, _len, _ref;
_ref = [1, 2, 3];
for (index = 0, _len = _ref.length; index < _len; index++) {
x = _ref[index];
console.log(index);
index++;
}
var index, x, _len, _ref, _ref2;
_ref = [1, 2, 3];
for (_ref2 = 0, _len = _ref.length; _ref2 < _len; _ref2++) {
x = _ref[_ref2];
index = _ref2;
console.log(index);
index++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment