Nutrient Web SDK

Function union

Set.union() creates a new immutable Set that is the union of a collection of other sets.

import { Set } from 'immutable'
const unioned = Set.union([
Set([ 'a', 'b', 'c' ])
Set([ 'c', 'a', 't' ])
])
// Set [ "a", "b", "c", "t" ]
Function
Type Signature
union<T>(sets: Iterable<Iterable<T, any, any>>): NutrientViewer.Immutable.Set<T>