Function join

  • Example

    import * as A from "flurp/array";

    const justJoin = A.join();
    justJoin(["a", "b", "c"])); // "abc"

    const joinDots = A.join("...");
    joinDots(["a", "b", "c"])); // "a...b...c"

    Type Parameters

    • T

    Parameters

    • separator: string = ""

    Returns ((arr: readonly T[]) => string)

      • (arr: readonly T[]): string
      • Parameters

        • arr: readonly T[]

        Returns string