All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.bourbon-4.2.5.app.assets.stylesheets.functions._contains.scss Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
@charset "UTF-8";

/// Checks if a list contains a value(s).
///
/// @access private
///
/// @param {List} $list
///   The list to check against.
///
/// @param {List} $values
///   A single value or list of values to check for.
///
/// @example scss - Usage
///   contains($list, $value)
///
/// @return {Bool}

@function contains($list, $values...) {
  @each $value in $values {
    @if type-of(index($list, $value)) != "number" {
      @return false;
    }
  }

  @return true;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy