Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Last active November 8, 2017 17:21
Show Gist options
  • Save gskachkov/67f08e7297146e51f83ad8af373ce58b to your computer and use it in GitHub Desktop.
Save gskachkov/67f08e7297146e51f83ad8af373ce58b to your computer and use it in GitHub Desktop.
const foo = (a, b, c) => `${a}:${b}:${c}`;
const proxy = new Proxy(foo, {
apply: function(target, thisArg, argumentsList) {
return target.apply(thisArg, argumentsList);
}
});
console.log(proxy("1", "2", "3")); // 1:2:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment