Nutrient Web SDK

Function intersect

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

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