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