@eagleoutice/flowr - v2.10.2
    Preparing search index...
    • Joins the given elements using the given join string, but uses a different string for the last join.

      Parameters

      • elements: readonly string[]
      • join: string
      • lastjoin: string

      Returns string

      const items = ['apple', 'banana', 'cherry'];
      const result = lastJoin(items, ', ', ' and ');
      console.log(result); // Output: "apple, banana and cherry"