On Wed, Aug 28, 2013 at 11:19 AM, Axel Rauschmayer <[email protected]> wrote:

> Suggestion: a named parameter `ignoreCase`:
>
>     $ 'hello world'.contains('WORLD')
>     false
>
>     $ 'hello world'.contains('WORLD', { ignoreCase: true })
>     true
>



This would create inconsistency with indexOf and lastIndexOf, which already
have a specified second argument. It's really not painful to make the two
strings the same case in user code if ignoring case is desired.

Rick
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to