blockAtPath
function blockAtPath(doc, path): BlockNode | null;Defined in: helpers.ts:17
Resolve a block by its document path, or null if the path is invalid.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
doc | { children: readonly BlockNode[]; } |
doc.children | readonly BlockNode[] |
path | readonly number[] |
Returns
Section titled “Returns”BlockNode | null