Sha256: 6ee1cd02f603b6a8245be4b26b22322b577401153b0c1ed84a654e3ecf701395
Contents?: true
Size: 516 Bytes
Versions: 25
Compression:
Stored size: 516 Bytes
Contents
// Returns true if a $map is a superset of $sub-map. @function map-contains-all($map, $sub-map) { @each $key, $value in $sub-map { @if not (map-has-key($map, $key) and map-get($map, $key) == $value) { @return false; } } @return true; } // Returns true if a $map has any key-value pair in $sub-map. @function map-contains-any($map, $sub-map) { @each $key, $value in $sub-map { @if map-has-key($map, $key) and map-get($map, $key) == $value { @return true; } } @return false; }
Version data entries
25 entries across 25 versions & 4 rubygems