On Wed, Jun 27, 2018 at 6:03 PM, Oriol _ <oriol-bugzi...@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
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss