fn
previousBlock
testedThe block before id in document order, or null.
Signature
ts
export function previousBlock(doc: WritekitDocument, id: string): Node | null{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
doc | WritekitDocument | — |
id | string | — |
Returns
Node | null