Skip to content

Instantly share code, notes, and snippets.

@harrisonmalone
Created January 14, 2019 01:11
Show Gist options
  • Save harrisonmalone/41280f279d89a935f38b9e98e7add076 to your computer and use it in GitHub Desktop.
Save harrisonmalone/41280f279d89a935f38b9e98e7add076 to your computer and use it in GitHub Desktop.
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