• It will convert all elements in the array into a string separated by the separator.

    Parameters

    • array: unknown[]
    • separator: string = ""

    Returns string

    Since

    1.0.0

    Example

    join([1, 2, 3]);
    // => "123"

    Example

    join([1, 2, 3], ",");
    // => "1,2,3"