length

length($list)

Return the length of a list.

This can return the number of pairs in a map as well.

Examples:

length(10px) => 1
length(10px 20px 30px) => 3
length((width: 10px, height: 20px)) => 2

Parameters:

  • $list (Base)

Returns:

  • (Number)
doc_Sass
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.