Created
May 3, 2012 01:46
-
-
Save mrpollo/2582475 to your computer and use it in GitHub Desktop.
Mozilla Puzzle http://people.mozilla.org/~jwein/puzzle/
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
| var pxy = Proxy.create({get: function(receiver, name){ | |
| return name.split("").reverse().join(""); | |
| }}); | |
| verify(pxy); |
Author
clever! didn't cross my mind at the time of writing, thanks for that
Author
@wuman thanks for the help, i updated the gist to reflect your contribution and decided to fix my Proxy object there was no point on that IF condition
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is an easier reverse() function:
function reverse(st) {
return st.split("").reverse().join("");
}