@bbn/bbn 1.0.195 → 1.0.197

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 CHANGED
@@ -8956,12 +8956,20 @@ __webpack_require__.r(__webpack_exports__);
8956
8956
  * ```
8957
8957
  * @memberof bbn.fn
8958
8958
  * @param {Object} obj
8959
- * @param {String} prop
8959
+ * @param {String} props
8960
8960
  * @returns {*} The property's value or undefined
8961
8961
  */
8962
- var getProperty = function (obj, prop) {
8963
- if (typeof obj === 'object' && typeof prop === 'string') {
8964
- return prop.split('.').reduce(function (o, i) {
8962
+ var getProperty = function (obj) {
8963
+ var props = [];
8964
+ for (var _i = 1; _i < arguments.length; _i++) {
8965
+ props[_i - 1] = arguments[_i];
8966
+ }
8967
+ if (typeof obj === 'object') {
8968
+ var arr = [];
8969
+ if (props.length === 1 && typeof props[0] === 'string') {
8970
+ arr.push.apply(arr, props[0].split('.'));
8971
+ }
8972
+ return arr.reduce(function (o, i) {
8965
8973
  if (o) {
8966
8974
  return o[i];
8967
8975
  }
@@ -9304,7 +9312,7 @@ __webpack_require__.r(__webpack_exports__);
9304
9312
 
9305
9313
 
9306
9314
 
9307
- var mutateArray = function (a1, a2, onInsert) {
9315
+ var mutateArray = function (a1, a2) {
9308
9316
  if (!(0,_type_isArray_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(a1, a2)) {
9309
9317
  throw new TypeError('mutateArray can only be called with arrays');
9310
9318
  }
@@ -9333,7 +9341,7 @@ var mutateArray = function (a1, a2, onInsert) {
9333
9341
  }
9334
9342
  else {
9335
9343
  // Insert the new item from a2 into a1
9336
- a1.splice(j, 0, onInsert ? onInsert(a1Ordered[j]) : a1Ordered[j]);
9344
+ a1.splice(j, 0, a1Ordered[j]);
9337
9345
  }
9338
9346
  }
9339
9347
  }