mobx-sentinel API doc
GitHub
Example
Preparing search index...
@mobx-sentinel/core
KeyPath
getAncestors
Function getAncestors
getAncestors
(
keyPath
:
KeyPath
,
includeSelf
?:
boolean
)
:
Generator
<
KeyPath
>
Get all ancestors of a key path
Parameters
keyPath
:
KeyPath
includeSelf
:
boolean
= true
Whether to include the path itself
Returns
Generator
<
KeyPath
>
KeyPath.Self
for single-level paths when
includeSelf
is false
Key paths starting from the closest ancestor and moving up to the root
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
Example
mobx-sentinel API doc
Loading...
Get all ancestors of a key path