@itwin/core-i18n 5.1.0-dev.0 → 5.1.0-dev.3

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.
@@ -16278,6 +16278,7 @@ function isSubclassOf(subclass, superclass) {
16278
16278
  __webpack_require__.r(__webpack_exports__);
16279
16279
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16280
16280
  /* harmony export */ areEqualPossiblyUndefined: () => (/* binding */ areEqualPossiblyUndefined),
16281
+ /* harmony export */ compareArrays: () => (/* binding */ compareArrays),
16281
16282
  /* harmony export */ compareBooleans: () => (/* binding */ compareBooleans),
16282
16283
  /* harmony export */ compareBooleansOrUndefined: () => (/* binding */ compareBooleansOrUndefined),
16283
16284
  /* harmony export */ compareNumbers: () => (/* binding */ compareNumbers),
@@ -16398,6 +16399,22 @@ function compareSimpleArrays(lhs, rhs) {
16398
16399
  }
16399
16400
  return cmp;
16400
16401
  }
16402
+ /** Compare two arrays of the same type `T` using the specified `compare` function to compare each pair of array elements.
16403
+ * @returns 0 if the arrays have the same length and `compare` returns 0 for each pair of elements, or a non-zero value if the arrays differ in length or contents.
16404
+ * @public
16405
+ */
16406
+ function compareArrays(lhs, rhs, compare) {
16407
+ let diff = compareNumbers(lhs.length, rhs.length);
16408
+ if (!diff) {
16409
+ for (let i = 0; i < lhs.length; i++) {
16410
+ diff = compare(lhs[i], rhs[i]);
16411
+ if (diff) {
16412
+ break;
16413
+ }
16414
+ }
16415
+ }
16416
+ return diff;
16417
+ }
16401
16418
 
16402
16419
 
16403
16420
  /***/ }),
@@ -21400,6 +21417,7 @@ __webpack_require__.r(__webpack_exports__);
21400
21417
  /* harmony export */ asInstanceOf: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.asInstanceOf),
21401
21418
  /* harmony export */ assert: () => (/* reexport safe */ _Assert__WEBPACK_IMPORTED_MODULE_1__.assert),
21402
21419
  /* harmony export */ base64StringToUint8Array: () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.base64StringToUint8Array),
21420
+ /* harmony export */ compareArrays: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareArrays),
21403
21421
  /* harmony export */ compareBooleans: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleans),
21404
21422
  /* harmony export */ compareBooleansOrUndefined: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleansOrUndefined),
21405
21423
  /* harmony export */ compareNumbers: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareNumbers),