kaven-basic - v6.0.0
    Preparing search index...

    Function ReplaceAt

    • Replaces a portion of the input string at the specified index with the given replacement string.

      Parameters

      • input: string

        The original string to modify.

      • index: number

        The zero-based position in the string where the replacement should begin.

      • replacement: string

        The string to insert at the specified index.

      • Optionallength: number

        (Optional) The number of characters to replace starting from the index. If not provided, replaces only one character.

      Returns string

      A new string with the specified portion replaced by the replacement string.

      4.0.0

      2025-06-25

    • Replaces a portion of a string at the specified position with a replacement string.

      Parameters

      • input: string

        The original string to modify.

      • position: StringPosition

        The position or range within the string where the replacement should occur.

      • replacement: string

        The string to insert at the specified position.

      Returns string

      A new string with the specified portion replaced by the replacement string.

      4.0.0

      2025-06-25