@kizmann/pico-js 0.3.26 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.3.26",
3
+ "version": "0.3.27",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -27,6 +27,10 @@ export class Obj
27
27
  keys = keys.join('.');
28
28
  }
29
29
 
30
+ if ( obj[keys] !== undefined ) {
31
+ return obj[keys];
32
+ }
33
+
30
34
  if ( ! Any.isString(keys) ) {
31
35
  keys = keys.toString();
32
36
  }
@@ -60,6 +64,10 @@ export class Obj
60
64
  keys = keys.toString();
61
65
  }
62
66
 
67
+ if ( obj[keys] !== undefined ) {
68
+ obj[keys] = val; return obj;
69
+ }
70
+
63
71
  keys = keys.split('.');
64
72
 
65
73
  let index = 0, length = keys.length, nested = obj;