Sass is-bracketed() Function

Last Updated:

Sass is-bracketed() Function

The is-bracketed() function returns whether a list has square brackets.

Example

SASS TO CSS CONVERTER
//Check your console @debug is-bracketed(1px 2px 3px); // false @debug is-bracketed([1px, 2px, 3px]); // true

Syntax

is-bracketed($list)

Parameter Value

ValueTypeExplanation
$list Required Specifies a list.

Return Value

ValueExplanation
Boolean Returns whether $list has square brackets.

Share this Page

Meet the Author