Skip to main content

remove ()

Returns a list without the specified value.

Parameters​

$list
The list from which the value is to be removed.
Type
List
$value
The value to be removed.
Type
*
$separator
The type of separator to be used by the copied list.
Type
space | comma | slash | auto
Default
auto

Return Value​

List
A list without the given value.

Example​

@use '@sass-fairy/list';

$list: 'ant', 'bison', 'camel', 'bison', 'duck', 'elephant';

@debug list.remove($list, 'bison');
// 'ant', 'camel', 'duck', 'elephant'