fuc-new/doc/node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

5 lines
154 B
JavaScript

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