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

    Function startsWith

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

      Parameters

      • string: string
      • searchString: string
      • position: number = 0

      Returns boolean

      1.0.0

      startsWith("012345", "012"); // => true
      
      startsWith("012345", "12"); // => false
      
      startsWith("012345", "234", 2); // => true