Skip to content

Instantly share code, notes, and snippets.

@grekko
Created September 2, 2016 19:14
Show Gist options
  • Save grekko/261070db2504a7daec628fc8c3911915 to your computer and use it in GitHub Desktop.
Save grekko/261070db2504a7daec628fc8c3911915 to your computer and use it in GitHub Desktop.
Medium: NodeList to Array #1
const headlines = document.querySelectorAll("h2")
// You can check the type of an object by
// headlines.constructor
// => NodeList() { [native code] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment