mobx-sentinel API doc
GitHub
Example
Preparing search index...
@mobx-sentinel/core
KeyPath
getRelative
Function getRelative
getRelative
(
keyPath
:
KeyPath
,
prefixKeyPath
:
KeyPath
)
:
null
|
KeyPath
Get the relative key path from a prefix key path
Parameters
keyPath
:
KeyPath
prefixKeyPath
:
KeyPath
Returns
null
|
KeyPath
null
if the key path is not a child of the prefix
KeyPath.Self
if the paths are identical
The original path if the prefix is
KeyPath.Self
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
Example
mobx-sentinel API doc
Loading...
Get the relative key path from a prefix key path