Sha256: 73ec6500ee55ff527c8309d28f348ade51b046624c991781c32046e3185b21d6

Contents?: true

Size: 499 Bytes

Versions: 51

Compression:

Stored size: 499 Bytes

Contents

@function bc-util-equal($value-1, $value-2, $recursive: true) {
  @if length($value-1) != length($value-2) {
    @return false;
  }

  @for $i from 1 through length($value-1) {

    @if $recursive
    and type-of( nth($value-1, $i) ) == list
    and type-of( nth($value-2, $i) ) == list {

      @if not bc-util-equal(nth($value-1, $i), nth($value-2, $i)) {
        @return false;
      }
    }

    @else if nth($value-1, $i) != nth($value-2, $i){
      @return false;
    }
  }

  @return true;
}

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
flint-gs-2.3.6 tests/bootcamp/dist/utils/_equal.scss
flint-gs-2.3.5 tests/bootcamp/dist/utils/_equal.scss
flint-gs-2.3.4 tests/bootcamp/dist/utils/_equal.scss
flint-gs-2.3.3 tests/bootcamp/dist/utils/_equal.scss
flint-gs-2.3.2 tests/bootcamp/dist/utils/_equal.scss
flint-gs-2.3.1 tests/bootcamp/dist/utils/_equal.scss
flint-gs-2.3.0 tests/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.14 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.13 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
flint-gs-2.2.0 tests/bootcamp/dist/utils/_equal.scss
flint-gs-2.1.4 tests/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.12 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.11 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.10 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.5 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.4 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.3 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.2 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.6.0 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss
oulu-rails-0.5.37 vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss