Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (14 sloc) 457 Bytes
/* stylelint-disable scss/at-function-pattern */
/// Encode a map to JSON
/// @access private
/// @param {Map} $map - map to be encoded
/// @return {String} - encoded map
/// @require {function} _proof-quote
/// @require {function} bolt-json-encode
@function _json-encode--map($map) {
$str: '';
@each $key, $value in $map {
$str: $str + ', ' + _proof-quote($key) + ': ' + bolt-json-encode($value);
}
@return '{' + str-slice($str, 3) + '}';
}
You can’t perform that action at this time.