Skip to content

Instantly share code, notes, and snippets.

Hussein Duvigneau ElGoorf

View GitHub Profile
@ElGoorf
ElGoorf / proxyFactory.js
Last active Jan 6, 2017
My original proxy experiment, made more useful by wrapping in a factory function.
View proxyFactory.js
"use strict";
class Fruit {
constructor(name){
this._name = name;
}
set name(name){
this._name = name;
}
@ElGoorf
ElGoorf / proxy.js
Last active Dec 17, 2016
Using Proxy and Reflect (ES6) to restrict insertion of objects into an Array - with test
View proxy.js
"use strict";
class Fruit {
constructor(name){
this._name = name;
}
set name(name){
this._name = name;
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.