mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
move getValue to utils
This commit is contained in:
parent
0267a2f91f
commit
eb47b05fe4
8
src/Utils/GetValue.ts
Normal file
8
src/Utils/GetValue.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export function getValue(obj, path) {
|
||||
if (obj) {
|
||||
for (var i = 0, path = path.split('.'), len = path.length; i < len; i++) {
|
||||
obj = obj[path[i]];
|
||||
};
|
||||
return obj;
|
||||
}
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user