to-string ()
Returns a string representing the specified map and its key/value pairs.
Parameters
$map
- The map from which to generate a string. When is an argument list, keywords will be included.
- Type
Map | ArgList<*>
Return Value
String
- A string representing the given map.
Example
@use '@sass-fairy/map';
$map: (false: true, a: 1, null: null, b: 2, 3: c, true: false);
@debug map.to-string($map);
// 'false: true; a: 1; : ; b: 2; 3: c; true: false'