Skip to content

Instantly share code, notes, and snippets.

View neefrehman's full-sized avatar
♻️
.reduce() reuse recycle

Neef Rehman neefrehman

♻️
.reduce() reuse recycle
View GitHub Profile
@neefrehman
neefrehman / bling.js
Last active December 7, 2018 12:42 — forked from paulirish/bling.js
bling dot js + $$
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;