David Bruant (2013-02-17T00:26:54.000Z)
github at esdiscuss.org (2013-07-12T02:26:28.064Z)
> So can we make the default behavior of new methods case insensitive? I think all current methods are case-sensitive. If these methods were to be made case-insensitive, someone else would come on the list demanding consistency. Also, it doesn't seem that hard to implement: ```js String.prototype.startsWithI = function(s){ this.match(new RegExp('^'+s, 'i')); } ``` And sometimes, case-sensitive is what you want. > We should have a String.replaceAll method right now web > developers are using complex logic to achieve the same. ```js "aA".replace(/a/ig, 'b'); // 'bb' ``` I feel the `i` and `g` flag or regexps aren't that complex. One just needs to know about them.