⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact cd8e1862b7eba0f20fc39edb18fe290e85fd6eec2d296dd6c4971c67a1412412:


/**
 * Shorter and fast way to select multiple nodes in the DOM
 * @param   { String } selector - DOM selector
 * @param   { Object } ctx - DOM node where the targets of our search will is located
 * @returns { Object } dom nodes found
 */
export default function $$(selector, ctx) {
  return [].slice.call((ctx || document).querySelectorAll(selector))
}