@extremejs/utils - v1.0.0-beta.23
    Preparing search index...

    Function endsWith

    • It will check whether the string ends with the given searchString.

      Parameters

      • string: string
      • searchString: string
      • endPosition: number = string.length

      Returns boolean

      1.0.0

      endsWith("012345", "345"); // => true
      
      endsWith("012345", "34"); // => false
      
      endsWith("012345", "123", 4); // => true