Boolean¶
Boolean.from
¶
Takes in a value and returns the boolean equivalent.
Signature
-> Any : Boolean
Example
# prints false
print(Boolean.from(0));
# prints true
print(Boolean.from(1));
# prints false
print(Boolean.from(null));