R
fn

blockIndex

tested

Index of a block by id, or `-1` if absent.

Signature

ts
export function blockIndex(doc: EditorDocument, id: string): number{ ... }

Parameters

ParameterTypeDescription
docEditorDocument
idstring

Returns

number