Sass inspect() Function

Last Updated:

Sass inspect() Function

The inspect() function returns a string representation of $value.

Example

SASS TO CSS CONVERTER
//Check your console @debug inspect(null); // "null" @debug inspect(10px 20px 30px); // "10px 20px 30px" @debug inspect('sans-serif'); // "'sans-serif'" @debug inspect(('width': 200px)); // "('width': 200px)"

Syntax

inspect($value)

Parameter Value

ValueTypeExplanation
$value Required Specifies any value.

Return Value

ValueExplanation
string Returns a string representation of $value.

Share this Page

Meet the Author