type_of

type_of($value)

Returns the type of a value.

Examples:

type-of(100px)  => number
type-of(asdf)   => string
type-of("asdf") => string
type-of(true)   => bool
type-of(#fff)   => color
type-of(blue)   => color

Parameters:

  • $value (Base) The value to inspect

Returns:

  • (String) The unquoted string name of the value’s type
doc_Sass
2016-11-11 13:09:27
Comments
Leave a Comment

Please login to continue.