Sha256: 44b3ee6bbdb43a15122b23053d2f951328c1a89a6daa93331aee2948e0717ec2
Contents?: true
Size: 522 Bytes
Versions: 8
Compression:
Stored size: 522 Bytes
Contents
// Check if key exists in map //-------------------------------------------------------------------------------- // @param $map [map] : map that contains $value // @param $value [string] : key to search for // ------------------------------------------------------------------------------- // @return [bool] @function exists($map, $value){ @if is-map($map) { @if map-has-key($map, $value) { @return true; } @each $key, $i in $map { @if exists($i, $value) { @return true; } } } @return false; }
Version data entries
8 entries across 8 versions & 1 rubygems