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

    const { Set } = require('immutable')
    const unioned = Set.union([
    Set([ 'a', 'b', 'c' ])
    Set([ 'c', 'a', 't' ])
    ])
    // Set [ "a", "b", "c", "t" ]

    Type Parameters

    • T

    Parameters

    Returns <internal>.Set<T>

Generated using TypeDoc