Skip to content

fullOuterJoin

fullOuterJoin(left, right, leftKey, rightKey) → array · Array

Full outer join – returns all items from both arrays, with null for non-matching sides.

  • left (required): left array

  • right (required): right array

  • leftKey (required): lambda to extract join key from left elements

  • rightKey (required): lambda to extract join key from right elements

utlx
let employees = [{id: 1, name: "Alice"}, {id: 2, name: "Bob"}]
let salaries = [{empId: 1, amount: 5000}, {empId: 3, amount: 6000}]
{
  joined: fullOuterJoin(employees, salaries, (e) -> e.id, (s) -> s.empId)
}

Released under AGPL-3.0.