Standardizing more de facto functions
On 04/01/2011 12:45 PM, Irakli Gozalishvili wrote:
I just recently found out that
Object.prototype.trimLeft / trimRight
are not part of ES5. Still many modern browsers (FF, Safari, Chrome) implement it.
String.prototype.*, but yeah. I'm not sure why these weren't standardized when trim was added, to be honest.
On Apr 1, 2011, at 1:02 PM, Jeff Walden wrote:
On 04/01/2011 12:45 PM, Irakli Gozalishvili wrote:
I just recently found out that
Object.prototype.trimLeft / trimRight
are not part of ES5. Still many modern browsers (FF, Safari, Chrome) implement it.String.prototype.*, but yeah. I'm not sure why these weren't standardized when trim was added, to be honest.
Nobody advocated for them. Smaller libraries are easier to learn than bigger libraries. How often when you need to trim on the right or left is it also important that you don't trim the other end?
I just recently found out that
Object.prototype.trimLeft / trimRight
are not part of ES5. Still many modern browsers (FF, Safari, Chrome) implement it.Would you consider standardizing them for harmony ?
-- Irakli Gozalishvili Web: www.jeditoolkit.com Address: 29 Rue Saint-Georges, 75009 Paris, France