Skip to content

Instantly share code, notes, and snippets.

@sebm
Created September 12, 2016 17:16
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 sebm/9e7c186936940ba45b5dcdfbd31b1b70 to your computer and use it in GitHub Desktop.
Save sebm/9e7c186936940ba45b5dcdfbd31b1b70 to your computer and use it in GitHub Desktop.
tidbits
// iterate over a NamedNodeMap
Array.prototype.map.call(attributes, attr => `${attr.nodeName} = ${attr.nodeValue}` )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment