Skip to content

Instantly share code, notes, and snippets.

@fuse
Created May 17, 2011 10:22
Show Gist options
  • Save fuse/976247 to your computer and use it in GitHub Desktop.
Save fuse/976247 to your computer and use it in GitHub Desktop.
var a1 = ["4", "2"]
Array.prototype.size = function() { return this.length; }
var a2 = ["s", "y", "n", "b", "i", "o", "z"]
a1.size()
=> 2
a2.size()
=> 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment