[added] GetPropertyValue => to core functions

This commit is contained in:
srgooglo 2020-10-07 11:13:19 +02:00
parent dd1c97aec8
commit 9023493d02

View File

@ -174,6 +174,14 @@ export function downloadEncodedURI(payload){
errorHandlers.onError.internal_proccess(error)
}
}
export function GetPropertyValue(object, dataToRetrieve) {
dataToRetrieve.split('.').forEach(function(token) {
if (object) object = object[token];
})
return object;
}
/**
* Return the last object from array
*