Skip to content

Commit

Permalink
fix flow issue #978
Browse files Browse the repository at this point in the history
  • Loading branch information
Salakar committed Apr 13, 2018
1 parent 97bc7a8 commit 2a1e365
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2a1e365

Please sign in to comment.