Site under construction! :3
True (true
) ξ―
The boolean value true
represents a value that is positive.
Truthy valuesξ―
- Number:
- String: any non-empty string
- Array: any non-empty array, even if the array items are
falsy
themselves.
Interactionsξ―
Function | Output |
---|---|
str(true) |
"true" |
int(true) |
1 |
number(true) |
number(1) |