o
Version:
common object helper functions
19 lines (18 loc) • 366 B
TypeScript
import { OObject } from './types';
/**
* Get the value from the path in the specified object
*
* @example
* ```
* const a = { a: 1, b: { c: 2 } };
*
* get(a, 'b.c'); // => 2
* ```
*
* @throws TypeError
*
* @since 1.0.0
* @version 2.0.0
*/
declare function get(obj: OObject, path: string, defaultValue?: any): any;
export default get;