On this page
Class Boolean<T>
Type parameters
T: boolean = boolean
Hierarchy
- Boolean
Index
Constructors
constructor
Type parameters
T: boolean = boolean
Returns Boolean<T>
Properties
Static Readonly FALSE
Sass's false
value.
Static Readonly TRUE
Sass's true
value.
Methods
getValue
-
Returns
true
if this is Sass'strue
value andfalse
if this is Sass'sfalse
value.Returns T
© 2006–2022 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/types.Boolean
Sass's boolean type.
Custom functions should respect Sass’s notion of truthiness by treating
false
andnull
as falsey and everything else as truthy.⚠️ Heads up!
Boolean values can't be constructed, they can only be accessed through the TRUE and FALSE constants.