[Proposal] ignoreCase method

T.J. Crowder tj.crowder at farsightsoftware.com
Wed Jun 27 17:22:54 UTC 2018


On Wed, Jun 27, 2018 at 6:03 PM, Oriol _ <oriol-bugzilla at hotmail.com> wrote:
>> (`.localeCompare(stringOne, undefined, {sensitivity: "base"})` **is**
> fairly verbose, so I'd probably have a utility function for it.)
>
> I would just create a collator outside the loop:

I meant verbose to write every time you need to do a case-insensitive
comparison; instead, I'd drop a utility function in my standard lib
somewhere.

I like that approach to creating that utility function, though. :-)

-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180627/342fefc8/attachment.html>


More information about the es-discuss mailing list