Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created June 4, 2012 23:39
Show Gist options
  • Save rwaldron/2871510 to your computer and use it in GitHub Desktop.
Save rwaldron/2871510 to your computer and use it in GitHub Desktop.
jQuery.each() w/ fat arrow
/**
*
* paste this code into:
*
* http://traceur-compiler.googlecode.com/git/demo/repl.html
*
*
*/
if (!window.jQuery) {
document.head.appendChild(
document.createElement("script").{
src = "http://code.jquery.com/jquery.js";
}
);
}
jQuery.each([ "foo", "bar", "baz" ], (i, item) => {
console.log(item);
});
@FrankFang
Copy link

got it. thx. I am ready to learn sth. about E6 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment