Sha256: 26bf527c64a0106006adcad2579b45135761fb9d4bc5921225ec17ea7efcffa0
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
/** * Fetch value from map * * @access private * * @param {Map} $map - map to fetch value from * @param {ArgList} $keys - list of keys to traverse * * @return {String | False} */ @function flint-map-fetch($map, $keys...) { // Use Ruby function if available @if $flint__use-ruby-functions { @return flint_ruby_map_fetch($map, $keys...); } @else { $result: $map; @each $key in $keys { @if $result { $result: flint-is-map($result) and map-has-key($result, $key) and map-get($result, $key) or false; } @else { @return false; } } @return $result; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flint-gs-2.0.2 | stylesheets/flint/functions/lib/_map-fetch.scss |