from typing import List


def join(array: List[str], separator: str = ",") -> str:
    """
    Returns a new string by concatenating all of the elements of the
    input array, separated by commas or a specified separator string.
    """
    return str(separator).join(map(str, array))