Skip to content

[F] skipTriviaBackward

function skipTriviaBackward(
script,
position,
endPosition): number

Parameters

ParameterTypeDefault valueDescription
scriptTypeSpecScriptNodeundefined
positionnumberundefined
endPositionnumber-1exclude

Returns

number

return === endPosition (or -1) means not found non-trivia until endPosition + 1