Hex Core JS
    Preparing search index...

    Function trimPrefix

    • Trims the given prefix from the given string. Related: trimLeft.

      Parameters

      • s: string

        The string to trim.

      • prefix: string

        The prefix to trim from s.

      • limit: number = 1

        The maximum number of times to trim the prefix (default is 1), a value less than zero indicates no limit.

      Returns string