UNPKG

react-jsx-parser

Version:

A React component which can parse JSX and output rendered React Components

10 lines (9 loc) 382 B
/** * Returns the result of a path query from an object * @param {any} object the object to search * @param {string} path the path, whose value will be retrieved * @returns {any} the value (undefined if the path doesn't exist) * @example * resolvePath({ foo: { bar: { baz: 3 } } }, 'foo.bar.baz') // 3 */ export declare const resolvePath: (object: any, path: string) => any;