Hi all,

I was a bit surprised not to find a size() method on String  (like
Array, Enumerable, Hash, ...)

So maybe there is a good reason not to (and I'd like to know it ;-),
but wouldn't it be nice to have

String.prototype.size = function() {
        return this.length;
}

so that we can call size() whatever the object type is?

thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to