Sha256: bc741254ab99cb5c4cce150634d63ba9cd81090afd36d16e86fa94f38c0dce10
Contents?: true
Size: 502 Bytes
Versions: 6
Compression:
Stored size: 502 Bytes
Contents
/** * Replaces old by new in $list * * @access private * * @link http://sassylists.com/documentation.html#replace * * @param {List} $list * @param {*} $old * @param {*} $value * * @return {List} */ @function flint-replace($list, $old, $value) { $running: true; @while $running { $index: index($list, $old); @if not $index { $running: false; } @else { $list: set-nth($list, $index, $value); } } @return if(not flint-is-true($value), flint-purge($list), $list); }
Version data entries
6 entries across 6 versions & 1 rubygems