Sass length() Function

Last Updated:

Sass length() Function

The length() function returns the length of a list.

Example

SASS TO CSS CONVERTER
//Check your console @debug length(1px); // 1 @debug length(1px 2px 3px); // 3 @debug length((width: 25px, height: 50px)); // 2

Syntax

length($list)

Parameter Value

ValueTypeExplanation
$list Required Specifies a list.

Return Value

ValueExplanation
Number Returns the number of pairs in a map.

Share this Page

Meet the Author