Skip to content

Instantly share code, notes, and snippets.

View stevebrownlee's full-sized avatar
🦁
Ready to roar

Steve Brownlee stevebrownlee

🦁
Ready to roar
View GitHub Profile
@stevebrownlee
stevebrownlee / util.js
Last active October 16, 2016 14:14
JavaScript Proxies example
"use strict";
/*
This object allows any object to define its own properties and methods.
Chainable.
Usage:
let foo = __.compose(Object.create(null), ObjectExtensions);
foo.property("propOne", 1).property("prop2", 2).def("fn", () => ({}));