pols-utils - v5.3.11
    Preparing search index...

    Function subStart

    • Extracts the first length characters from a string or number.

      Parameters

      • value: string | number

        The target string or value.

      • count: number

        The number of characters to extract.

      Returns string

      A string containing the first length characters of the target value.

      console.log(PUtilsString.subStart('this is a string', 6)) // 'this i'
      console.log(PUtilsString.subStart(123456, 4)) // '1234'