UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

16 lines (14 loc) 392 B
/** * 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;