@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -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 ( typeof obj === 'undefined' ) {
46
+ if ( obj === undefined || obj === null) {
47
47
  return fallback;
48
48
  }
49
49