fn
findBlock
testedA block and its index, or `null` if absent.
Signature
ts
export function findBlock(doc: EditorDocument, id: string):{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
doc | EditorDocument | — |
id | string | — |
Returns
{ node: Node; index: number; } | null