Skip to content

Instantly share code, notes, and snippets.

Hussein Duvigneau ElGoorf

Block or report user

Report or block ElGoorf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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;
}
@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;
}
You can’t perform that action at this time.