@kizmann/pico-js 0.3.19 → 0.3.20
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 +9 -1
package/package.json
CHANGED
package/src/utility/object.js
CHANGED
@@ -29,7 +29,15 @@ export class Obj
|
|
29
29
|
let result = [];
|
30
30
|
|
31
31
|
Arr.each(keys, (key) => {
|
32
|
-
|
32
|
+
|
33
|
+
key = (typeof key === 'string' && key.match(/^[^\.]+(\.[^\.]+)*$/)) ?
|
34
|
+
key.split('.') : key;
|
35
|
+
|
36
|
+
if ( Any.isArray(keys) === false ) {
|
37
|
+
key = [key];
|
38
|
+
}
|
39
|
+
|
40
|
+
result = result.concat(key)
|
33
41
|
});
|
34
42
|
|
35
43
|
let key = result.shift();
|