mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
fix flow issue #978
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user