Sha256: 7a4ac595ecc4c311492710101a800318ec99678013fce1da44278c4114804fe8

Contents?: true

Size: 482 Bytes

Versions: 7

Compression:

Stored size: 482 Bytes

Contents

// Returns next indexed key based on passed index
// -------------------------------------------------------------------------------
// @param $index [number] : index
// -------------------------------------------------------------------------------
// @return [string] | null

@function next-index($index) { 
	@if $index != (length(map-fetch($flint, "config")) - 1) {
		@each $key in nth(map-get($flint, "config"), $index + 1) {
			@return $key;
		}
	} @else {
		@return null;
	}
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flint-gs-1.6.5 stylesheets/flint/functions/lib/_next-index.scss
flint-gs-1.6.4 stylesheets/flint/functions/lib/_next-index.scss
flint-gs-1.6.3 stylesheets/flint/functions/lib/_next-index.scss
flint-gs-1.6.2 stylesheets/flint/functions/lib/_next-index.scss
flint-gs-1.6.0 stylesheets/flint/functions/lib/_next-index.scss
flint-gs-1.5.0 stylesheets/flint/functions/lib/_next-index.scss
flint-gs-1.4.0 stylesheets/flint/functions/lib/_next-index.scss