Skip to main content
Module

x/rambda/source/union.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {union} from './union'
test('happy', () => { expect(union([1, 2], [2, 3])).toEqual([1, 2, 3])})
test('with list of objects', () => { const list1 = [{a: 1}, {a: 2}] const list2 = [{a: 2}, {a: 3}] const result = union(list1)(list2)})