fix flow issue #978

This commit is contained in:
Salakar 2018-04-13 22:37:48 +01:00
parent 97bc7a88a8
commit 2a1e365231
1 changed files with 1 additions and 5 deletions

View File

@ -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);