@adyen/adyen-web
Version:
[](https://www.npmjs.com/package/@adyen/adyen-web)
16 lines (14 loc) • 392 B
TypeScript
/**
* returns the indicated property of an object, if it exists.
*
* @param object - The object to query
* @param path - The property name or path to the property
* @returns The value at `obj[p]`.
* @example
* ```
* getProp({x: 100}, 'x'); //=> 100
* getProp({}, 'x'); //=> undefined
* ```
*/
declare const getProp: (object: any, path: string) => any;
export default getProp;