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

    Function subEnd

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

      Parameters

      • value: string | number

        The target string or value.

      • length: number

      Returns string

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

      console.log(PUtilsString.subEnd('this is a string', 6)) // 'string'
      console.log(PUtilsString.subEnd(123456, 4)) // '3456'