Sha256: 518f53e6a966593a79c3c6a0eaa34a8a5b41a0b0ab29447efb7f4fa8982ea42e

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 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){

	@if flint-is-map($map) {
		@if map-has-key($map, $value) {
			@return true;
		}
		@each $key, $i in $map {
			@if flint-exists($i, $value) {
				@return true;
			}
		}
	}

	@return false;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flint-gs-1.7.1 stylesheets/flint/functions/lib/_exists.scss