Created
January 14, 2019 01:11
-
-
Save harrisonmalone/41280f279d89a935f38b9e98e7add076 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
Boolean.prototype.toString = function() { | |
return String(this.valueOf()) | |
} | |
Number.prototype.toString = function() { | |
return String(this.valueOf()) | |
} | |
Array.prototype.toString = function() { | |
const arr = this.valueOf() | |
return '[' + arr.join() + ']' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment