Skip to content

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.

ParameterType
doc{ children: readonly BlockNode[]; }
doc.childrenreadonly BlockNode[]
pathreadonly number[]

BlockNode | null