Skip to content

Instantly share code, notes, and snippets.

@suissa
Created November 21, 2017 02:29
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 suissa/8d9fb8bde2dd9a60fa8f02ba2632adb1 to your computer and use it in GitHub Desktop.
Save suissa/8d9fb8bde2dd9a60fa8f02ba2632adb1 to your computer and use it in GitHub Desktop.
const $$ = ( selector, context = document ) =>
Array.prototype.slice.call( context.querySelectorAll( selector ) )
$$( '.myjQuery' )[ 0 ].innerHTML = $$( 'div' ).length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment