linny-r 1.1.23 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -238,6 +238,11 @@ function markFirstDifference(s1, s2) {
238
238
  // Functions that perform string search, comparison and/or substitution
239
239
  //
240
240
 
241
+ function ciCompare(a, b) {
242
+ // Performs case-insensitive comparison
243
+ return a.localeCompare(b, undefined, {sensitivity: 'base'});
244
+ }
245
+
241
246
  function endsWithDigits(str) {
242
247
  // Returns trailing digts of `str` (empty string will evaluate as FALSE)
243
248
  let i = str.length - 1,