Skip to content
Sheetwrite

@sheetwrite/core/testing

suggestionWordEndsfunction

Report a problem

On this page

The ends of the words of a suggestion, as lengths into it, ascending; the last is the suggestion's length. analysis reads the text followed by the suggestion, which spans from to end in it. A suggestion that starts inside a token (the rest of a name) ends its first word with that token.

Declaration

function suggestionWordEnds(
analysis: Pick<FormulaAnalysis, "tokens" | "references">,
from: number,
end: number,
): number[]

Parameters

analysis: Pick<FormulaAnalysis, "tokens" | "references">required
from: numberrequired
end: numberrequired

Returns

number[]