/** * Gets the value at 'path' of 'object'. * * @param {object} object Object to get value from. * @param {string} path Dot notation path of the property to get value from. * @param {*} [fallback=undefined] Fallback value to return if no value was found. * * @returns {*} The value if found, otherwise fallback value if specified, otherwise undefined. * * @example * * getValue({ person: { name: 'John Doe' } }, 'person.name'); * // => 'John Doe' * * getValue({ person: { name: undefined } }, 'person.name', 'John Doe'); * // => 'John Doe' */ export default function getValue(object: object, path: string, fallback?: any): any;