index.js
function q (str) {
	if (Array.isArray(str)) {
		return str.map(q).reduce(function(prev, curr) { return prev.concat(curr); }, [] );
	}
	else if (str instanceof HTMLElement) {
		return [str];
	}
	else {
		return [].slice.call(document.querySelectorAll(str));
	}
}
function q (str) {
	if (Array.isArray(str)) {
		return str.map(q).reduce(function(prev, curr) { return prev.concat(curr); }, [] );
	}
	else if (str instanceof HTMLElement) {
		return [str];
	}
	else {
		return [].slice.call(document.querySelectorAll(str));
	}
}
function q ( str ) { if ( Array . isArray ( str ) ) { return str . map ( q ) . reduce ( function ( prev , curr ) { return prev . concat ( curr ) ; } , [ ] ) ; } else if ( str instanceof HTMLElement ) { return [ str ] ; } else { return [ ] . slice . call ( document . querySelectorAll ( str ) ) ; } }
little helpers
little helpers