fix flow issue #978
This commit is contained in:
parent
97bc7a88a8
commit
2a1e365231
|
@ -20,11 +20,7 @@ const { hasOwnProperty } = Object;
|
|||
* @param joiner
|
||||
* @returns {*}
|
||||
*/
|
||||
export function deepGet(
|
||||
object: Object,
|
||||
path: string,
|
||||
joiner?: string = '/'
|
||||
): any {
|
||||
export function deepGet(object: any, path: string, joiner?: string = '/'): any {
|
||||
if (!isObject(object)) return undefined;
|
||||
const keys = path.split(joiner);
|
||||
|
||||
|
|
Loading…
Reference in New Issue