Sha256: de0685060b74cda0ebd6f8ad03741b28f5addd961b5b2f89a6104139a9ee5d0c

Contents?: true

Size: 585 Bytes

Versions: 3

Compression:

Stored size: 585 Bytes

Contents

// Removes all false and null values from $list
// -------------------------------------------------------------------------------
// @documentation http://sassylists.com/documentation.html#purge
// -------------------------------------------------------------------------------
// @param $list [list] : list
// -------------------------------------------------------------------------------
// @return [list]

@function purge($list) {
	$result: ();

	@each $item in $list {
		@if is-true($item) {
			$result: append($result, $item, list-separator($list));
		}
	}

	@return $result;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flint-gs-1.6.5 stylesheets/flint/functions/lib/_purge.scss
flint-gs-1.6.4 stylesheets/flint/functions/lib/_purge.scss
flint-gs-1.6.3 stylesheets/flint/functions/lib/_purge.scss