getAttributeValueByPath.js 154 B

12345
  1. export function getAttributeValueByPath(record, path) {
  2. return path.reduce(function (current, key) {
  3. return current && current[key];
  4. }, record);
  5. }