Created
July 19, 2014 22:44
-
-
Save mbseid/9fa3fdf75c4940eef5ca to your computer and use it in GitHub Desktop.
Javascript String Primative
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
String.prototype.foobar = function(){return this;} | |
> function (){return this;} | |
typeof "foo" | |
> "string" | |
typeof "foo".foobar() | |
> "object" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment