mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
[added] GetPropertyValue => to core functions
This commit is contained in:
parent
dd1c97aec8
commit
9023493d02
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user