unitless

unitless($number)

Returns whether a number has units.

Examples:

unitless(100) => true
unitless(100px) => false

Parameters:

  • $number (Number)

Returns:

  • (Bool)

Raises:

  • (ArgumentError) if $number isn’t a number
doc_Sass
2016-11-11 13:09:28
Comments
Leave a Comment

Please login to continue.