Files
actual/node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js
Rich In SQL 28d4ee94dd Init
2022-10-16 20:28:33 +01:00

5 lines
154 B
JavaScript

export function getAttributeValueByPath(record, path) {
return path.reduce(function (current, key) {
return current && current[key];
}, record);
}