PK

ADDRLIN : /home/questend/public_html/domains/flaxzy.com/node_modules/collect.js/src/helpers/
FLL :
Current File : /home/questend/public_html/domains/flaxzy.com/node_modules/collect.js/src/helpers/nestedValue.js

'use strict';

/**
 * Get value of a nested property
 *
 * @param mainObject
 * @param key
 * @returns {*}
 */
module.exports = function nestedValue(mainObject, key) {
  try {
    return key.split('.').reduce((obj, property) => obj[property], mainObject);
  } catch (err) {
    // If we end up here, we're not working with an object, and @var mainObject is the value itself
    return mainObject;
  }
};


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home