• Join a list of strings, but with special handling for the last element/scenarios in which the array contains exactly two elements. The goal is to create (partial) sentences like a, b, and c or a and b.

    Parameters

    • strs: readonly string[]
    • __namedParameters: { join?: string; joinTwo?: string; last?: string } = {}

    Returns string