////
/// @author Newton Koumantzelis
////

/// Checks if the variable is contained within the list
/// @since 2.0.0 - The Jedi
/// @param {List} $list - the list to check against
/// @param {String} $var -  the variable to check if it exists within the `$list`
/// @return {Bool}
/// @example scss
///    @if contains($global_vars, "a11y") {
///      @include tab-focus();
///    }
@function contains($list, $var) {
	$output: false;

	@each $item in $list {
		@if $item == $var {
			$output: true;
		}
	}

	@return $output;
}
