Skip to main content

Home > @jsplumb/util > addToDictionary

addToDictionary() function#

Adds an item to a dictionary whose values consists of array of some type. This method is used internally by jsPlumb and is not intended as part of the public API, and will likely be removed at some point in the future when the code that depends upon it has been refactored.

Signature:

export declare function addToDictionary<T>(map: Dictionary<Array<T>>, key: string, value: any, insertAtStart?: boolean): Array<any>;

Parameters#

ParameterTypeDescription
mapDictionary<Array<T>>
keystring
valueany
insertAtStartboolean

Returns:

Array<any>