kotarok
1/18/2016 - 12:47 PM

Minimum fake jQuery

Minimum fake jQuery

var $ = function(q, f){
  return [][(f? 'forEach': 'slice')].call(document.querySelectorAll(q), f || 0);
};