Sha256: 73755544277e3d7bb4b26b51a7e711b90f97e17af935b24147c0c2532b38dedf
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 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 flint-exists($map, $value){ $is-map: flint-is-map($map); $top-has-key: $is-map and map-has-key($map, $value) or false; @if $top-has-key { @return true; } @else if $is-map { @each $m, $k in $map { @if flint-exists($k, $value) { @return true; } } } @return false; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flint-gs-1.12.0 | stylesheets/flint/functions/lib/_exists.scss |
flint-gs-1.11.2 | stylesheets/flint/functions/lib/_exists.scss |