Skip to content

Instantly share code, notes, and snippets.

@zeraphie
Created February 22, 2018 17:58
Show Gist options
  • Save zeraphie/a2ba2cd99fcdc583be21dd95bf8a1952 to your computer and use it in GitHub Desktop.
Save zeraphie/a2ba2cd99fcdc583be21dd95bf8a1952 to your computer and use it in GitHub Desktop.
let selector = 'a'; [...document.querySelectorAll(selector)].reduce((total, cur) => ++total, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment