Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rambda/rambda.js>union

Faster and smaller alternative to Ramda
Latest
function union
import { union } from "https://deno.land/x/rambda@9.2.1/rambda.js";

It takes two lists and return a new list containing a merger of both list with removed duplicates.

R.equals is used to compare for duplication.

Parameters

x: T[]
y: T[]