Module: intersects

Intersects for Typed Maps and Types
Source:

Methods

(inner) intersectTypedMaps(typedMap1, typedMap2) → {Map}

Intersect two Typed Maps based on Keys and Types
Parameters:
Name Type Description
typedMap1 Map Map to Intersect
typedMap2 Map Map to Intersect
Source:
Throws:
Throws an error if error occurred when intersecting Typed Maps
Returns:
Intersected Map
Type
Map

(inner) intersectTypes(type1, type2) → {Object|null}

Intersect two Types based on Types
Parameters:
Name Type Description
type1 Object Type to Intersect (array, object, types)
type2 Object Type to Intersect (array, object, types)
Source:
Returns:
Intersected Type if not null
Type
Object | null