Skip to main content

StringUtils

SubStrEquals

SubStrEquals(input, index, sequence) => false | true

Checks if the substring of a given input starting at a given index is equal to a given sequence.

Parameters

  •  input: string – The input string that a substring of will be examined.

  •  index: number – The starting index of input to compare at.

  •  sequence: string – The sequence to check equality with.

Returns

  •   false | true – True if input has a substring starting at index that matches sequence, false otherwise.