Skip to content

Instantly share code, notes, and snippets.

@Zemnmez
Created April 5, 2014 16:47
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 Zemnmez/9994436 to your computer and use it in GitHub Desktop.
Save Zemnmez/9994436 to your computer and use it in GitHub Desktop.
//I hate javascript
function attributes(el) {
var n = Function.call.bind(Array.prototype.shift, arguments);
el = n();
for (var z=n();z!=void 0;z=n())
el.setAttribute(z, n());
};
attributes(document.createElement("div"), "lel", 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment