@bbn/bbn 1.0.194 → 1.0.195
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.
- package/dist/bbn.js +2 -2
- package/dist/bbn.js.map +1 -1
- package/dist/fn/object/mutateArray.d.ts +1 -1
- package/dist/fn/object/mutateArray.js +2 -2
- package/dist/fn.d.ts +1 -1
- package/package.json +1 -1
package/dist/bbn.js
CHANGED
|
@@ -9304,7 +9304,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9304
9304
|
|
|
9305
9305
|
|
|
9306
9306
|
|
|
9307
|
-
var mutateArray = function (a1, a2) {
|
|
9307
|
+
var mutateArray = function (a1, a2, onInsert) {
|
|
9308
9308
|
if (!(0,_type_isArray_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(a1, a2)) {
|
|
9309
9309
|
throw new TypeError('mutateArray can only be called with arrays');
|
|
9310
9310
|
}
|
|
@@ -9333,7 +9333,7 @@ var mutateArray = function (a1, a2) {
|
|
|
9333
9333
|
}
|
|
9334
9334
|
else {
|
|
9335
9335
|
// Insert the new item from a2 into a1
|
|
9336
|
-
a1.splice(j, 0, a1Ordered[j]);
|
|
9336
|
+
a1.splice(j, 0, onInsert ? onInsert(a1Ordered[j]) : a1Ordered[j]);
|
|
9337
9337
|
}
|
|
9338
9338
|
}
|
|
9339
9339
|
}
|