@bbn/bbn 1.0.196 → 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
  }