Properties
[iterator]
[iterator] : ( ( ) => IterableIterator < [ TKey , TVal ] > )
Type declaration
( ) : IterableIterator < [ TKey , TVal ] >
Returns IterableIterator < [ TKey , TVal ] >
Readonly
[to String Tag]
[to String Tag] : string
add
Type declaration
( key , value ) : SetMultiMap < TKey , TVal >
Parameters
key : TKey
value : TVal | ReadonlySet < TVal >
as Map
as Map : ( ( ) => ReadonlyMap < TKey , ReadonlySet < TVal > > )
Type declaration
( ) : ReadonlyMap < TKey , ReadonlySet < TVal > >
Returns ReadonlyMap < TKey , ReadonlySet < TVal > >
delete Entry
delete Entry : ( ( key , value ) => boolean )
Type declaration
( key , value ) : boolean
Returns boolean
distinct Keys
distinct Keys : ( ( ) => IterableIterator < TKey > )
Type declaration
( ) : IterableIterator < TKey >
Returns IterableIterator < TKey >
entries
entries : ( ( ) => IterableIterator < [ TKey , TVal ] > )
Type declaration
( ) : IterableIterator < [ TKey , TVal ] >
Returns IterableIterator < [ TKey , TVal ] >
entry Sets
entry Sets : ( ( ) => IterableIterator < [ TKey , ReadonlySet < TVal > ] > )
Type declaration
( ) : IterableIterator < [ TKey , ReadonlySet < TVal > ] >
Returns IterableIterator < [ TKey , ReadonlySet < TVal > ] >
for Each
for Each : ( ( callbackfn , thisArg ? ) => void )
Type declaration
( callbackfn , thisArg ? ) : void
Parameters
callbackfn : ( ( value , key , map ) => void )
( value , key , map ) : void
Returns void
Optional
thisArg : any
Returns void
get
get : ( ( key ) => undefined | ReadonlySet < TVal > )
Type declaration
( key ) : undefined | ReadonlySet < TVal >
Returns undefined | ReadonlySet < TVal >
has Entry
has Entry : ( ( key , value ) => boolean )
Type declaration
( key , value ) : boolean
Returns boolean
Readonly
size
size : number
Inherited from Map.size
Defined in node_modules/typescript/lib/lib.es2015.collection.d.ts:46
value Sets
value Sets : ( ( ) => IterableIterator < ReadonlySet < TVal > > )
Type declaration
( ) : IterableIterator < ReadonlySet < TVal > >
Returns IterableIterator < ReadonlySet < TVal > >
values
values : ( ( ) => IterableIterator < TVal > )
Type declaration
( ) : IterableIterator < TVal >
Returns IterableIterator < TVal >
A SetMultiMap is a Map where a single key can have multiple unique values. Deleting a key removes all bindings with this key from the Map. Setting a value for a key replaces all previous bindings with this key. Using an empty Set when calling the
set
function is the same as deleting that key.