Properties
[iterator]
[iterator]: ( ( ) => IterableIterator < [ TKey , TVal ] > )
Type declaration
( ) : IterableIterator < [ TKey , TVal ] >
Returns IterableIterator < [ TKey , TVal ] >
Readonly
[to String Tag]
[to String Tag]: string
add
add
: ( ( key
: TKey , value
: TVal | ReadonlySet < TVal > ) => SetMultiMap < TKey , TVal > )
Type declaration
( key: TKey , value: TVal | ReadonlySet < TVal > ) : 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: TKey , value: TVal ) => boolean )
Type declaration
( key: TKey , value: TVal ) : 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
: ( ( value
: TVal , key
: TKey , map
: SetMultiMap < TKey , TVal > ) => void ) , thisArg
?: any ) => void )
Type declaration
( callbackfn: ( ( value: TVal , key: TKey , map: SetMultiMap < TKey , TVal > ) => void ) , thisArg?: any ) : void
Parameters
callbackfn: ( ( value: TVal , key: TKey , map: SetMultiMap < TKey , TVal > ) => void )
( value: TVal , key: TKey , map: SetMultiMap < TKey , TVal > ) : void
Returns void
Optional
thisArg: any
Returns void
get
get: ( ( key: TKey ) => undefined | ReadonlySet < TVal > )
Type declaration
( key: TKey ) : undefined | ReadonlySet < TVal >
Returns undefined | ReadonlySet < TVal >
has Entry
has Entry: ( ( key: TKey , value: TVal ) => boolean )
Type declaration
( key: TKey , value: TVal ) : boolean
Returns boolean
Readonly
size
size: number
Inherited from Map.size
Defined in node_modules/typescript/lib/lib.es2015.collection.d.ts:28
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.