Sha256: 5d88c478c78ff2d541c05c0b658edb46aa5e9a7b4cfb13bc4f1f9319d3483751

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 Bytes

Contents

/**
 * Removes all false and null values from $list
 *
 * @access private
 *
 * @link http://sassylists.com/documentation.html#purge
 *
 * @param {List} $list
 *
 * @return {List}
 */
@function flint-purge($list) {
	$result: ();

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

	@return $result;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
flint-gs-2.0.2 stylesheets/flint/functions/lib/_purge.scss
flint-gs-2.0.1 stylesheets/flint/functions/lib/_purge.scss
flint-gs-2.0.0 stylesheets/flint/functions/lib/_purge.scss
flint-gs-2.0.0.rc.4 stylesheets/flint/functions/lib/_purge.scss
flint-gs-2.0.0.rc.3 stylesheets/flint/functions/lib/_purge.scss
flint-gs-2.0.0.rc.2 stylesheets/flint/functions/lib/_purge.scss