Last active
November 8, 2017 17:21
-
-
Save gskachkov/67f08e7297146e51f83ad8af373ce58b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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