Creates a new Sass map.
The number of (initially undefined) key/value pairs in the map.
Returns the key in the key/value pair at index
.
A (0-based) index of a key/value pair in this map.
Returns the number of key/value pairs in this map.
Returns the value in the key/value pair at index
.
A (0-based) index of a key/value pair in this map.
Sets the value in the key/value pair at index
to value
.
A (0-based) index of a key/value pair in this map.
Sets the value in the key/value pair at index
to value
.
A (0-based) index of a key/value pair in this map.
© 2006–2022 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/types.Map
Sass's map type.
⚠️ Heads up!
This map type is represented as a list of key-value pairs rather than a mapping from keys to values. The only way to find the value associated with a given key is to iterate through the map checking for that key. Maps created through this API are still forbidden from having duplicate keys.