Function replaceAll

  • replaceAll occurences of a character in a string.

    Remark

    Some versions of nodejs don't provide String.prototype.replaceAll this is why this function exists

    Returns

    the string with replaced segments

    Parameters

    • content: string

      the input string

    • seg: string

      the string segment to replace

    • rep: string

      the string segment to replace seg with

    Returns string

Generated using TypeDoc