move getValue to utils

This commit is contained in:
Anton 2024-01-06 13:35:08 +01:00
parent 0267a2f91f
commit eb47b05fe4

8
src/Utils/GetValue.ts Normal file
View 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;
}
};