mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
dump of current js files
This commit is contained in:
@@ -38,7 +38,7 @@ export function deepGet(object, path, joiner = '/') {
|
||||
const len = keys.length;
|
||||
|
||||
while (i < len) {
|
||||
const key = keys[i += 1];
|
||||
const key = keys[i++];
|
||||
if (!tmp || !hasOwnProperty.call(tmp, key)) return null;
|
||||
tmp = tmp[key];
|
||||
}
|
||||
@@ -62,7 +62,7 @@ export function deepExists(object, path, joiner = '/') {
|
||||
const len = keys.length;
|
||||
|
||||
while (i < len) {
|
||||
const key = keys[i += 1];
|
||||
const key = keys[i++];
|
||||
if (!tmp || !hasOwnProperty.call(tmp, key)) return false;
|
||||
tmp = tmp[key];
|
||||
}
|
||||
@@ -205,8 +205,9 @@ export function each(array: Array, chunkSize?: number, iterator: Function, cb: F
|
||||
}
|
||||
|
||||
export function typeOf(value) {
|
||||
if (value === null) return 'null';
|
||||
if (Array.isArray(value)) return 'array';
|
||||
return value === null ? 'null' : typeof value;
|
||||
return typeof value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user