On Jan 29, 3:41 am, "artemy tregoubenko" <[EMAIL PROTECTED]>
wrote:
> Well, I'm using this one:
> Object.extend(String.prototype, {
> parseInt: parseInt.methodize(),
> parseFloat: parseFloat.methodize(),
>
> });
>
Clever. :-)
In ECMAScript 4, parseInt and parseFloat are becoming static methods
on Number, not on String (i.e., Number.parseInt("3")). I could more
easily see adding String#toNumber, but it's not a must-have for me.
What do others think?
Cheers,
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---