diff --git a/src/Utils/GetValue.ts b/src/Utils/GetValue.ts new file mode 100644 index 00000000..f4003921 --- /dev/null +++ b/src/Utils/GetValue.ts @@ -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; + } +}; \ No newline at end of file