@kizmann/pico-js 0.3.22 → 0.3.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/utility/object.js +2 -2
package/package.json
CHANGED
package/src/utility/object.js
CHANGED
@@ -39,11 +39,11 @@ export class Obj
|
|
39
39
|
return fallback;
|
40
40
|
}
|
41
41
|
|
42
|
-
while (obj !== undefined && index < length) {
|
42
|
+
while (obj !== undefined && obj !== null && index < length) {
|
43
43
|
obj = obj[keys[index++]];
|
44
44
|
}
|
45
45
|
|
46
|
-
if (
|
46
|
+
if ( obj === undefined || obj === null) {
|
47
47
|
return fallback;
|
48
48
|
}
|
49
49
|
|