Adds the specified key and value to the dictionary.
Namespace: MindFusion.Common
Package: Common.js
JavaScript
![]() |
---|
function set (key, value) |
The key of the element to add.
The value of the element to add.
If a value with this key is already present in the collection, it is replaced by the new value. The key can be a Number, a String or an Object. If other type is passed as key, exception will be thrown.