Optionally ignoring case in String.prototype.contains()?

Axel Rauschmayer axel at rauschma.de
Wed Aug 28 08:19:44 PDT 2013


Suggestion: a named parameter `ignoreCase`:

    $ 'hello world'.contains('WORLD')
    false

    $ 'hello world'.contains('WORLD', { ignoreCase: true })
    true

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130828/4ee1123b/attachment-0001.html>


More information about the es-discuss mailing list