set
Set properties on a SimpleMap.
map.set(key, value)
Assigns value to a property on this SimpleMap called key.
Parameters
- key
{String}:The property to set
- value
{*}:The value to assign to key.
Returns
{can.SimpleMap}:
this SimpleMap, for chaining
map.set(obj)
Assigns each value in obj to a property on this SimpleMap named after the
corresponding key in obj, effectively merging obj into the SimpleMap.
Parameters
- obj
{Object}:a collection of key-value pairs to set. If any properties already exist on the
SimpleMap, they will be overwritten.
Returns
{can.SimpleMap}:
this SimpleMap, for chaining