instance method SpahQL.Token.PathComponent#fetchResultsFromObjectByKey
SpahQL.Token.PathComponent#fetchResultsFromObjectByKey(key, object, path, recursive) → Array
-
key
(String
) – The key to be retrieved from the object. Numeric keys in string formare acceptable when accessing arrays.] -
rootData
(Object
) – The root data structure being queried. -
scopeData
(Object
) – The data structure from which the key’s associated value will be retrieved -
path
(String
) – The path at which the item used as the ‘object’ argument is located -
recursive
(Boolean
) – A flag indicating whether the key should also be pulled from any child objects of the given object. I N C E P T I O N.
Retrieves the value(s) associated with a given key from the given object, if such a key exists.