toolkit.deref {shinylight} | R Documentation |
JavaScript function: Dereferences an object or array through multiple indices.
Description
deref(o, [a,b,c], d)
is a safe way of doing
o[a][b][c]
. If that path does not exist, d is returned.
If d is not supplied, null is returned. Any undefined values in
path are ignored.
Arguments
object |
|
path |
|
defaultValue |
|
Value
Object dereferenced, defaultValue
, or null.
[Package shinylight version 1.2 Index]