Skip to content

[F] skipTrivia

function skipTrivia(
input,
position,
endPosition): number

Parameters

ParameterTypeDefault valueDescription
inputstringundefined
positionnumberundefined
endPositionnumberinput.lengthexclude

Returns

number

return === endPosition (or input.length) means not found non-trivia until endPosition - 1