@naverpay/hidash
Version:
improved lodash
16 lines (14 loc) • 553 B
text/typescript
/**
* @description
* Gets the property value at path of object.
* DefaultValue is used if it is not found at path.
* excluded patterns 'a.b.c' and 'are[4][0]'
*
* @param {Object|Array} object - object to get.
* @param {String} path - path of the property to get.
* @param defaultValue - DefaultValue is used if it is not found at path.
*
* @returns Returns the value at path of object.
*/
declare function get<T>(object: unknown, path: string | symbol | (string | number)[], defaultValue?: T): T | undefined;
export { get as default, get };