NullableObjectLeanExtensions extension
adds "truthy" / "falsy" extensions
- on
Properties
- isFalsy → bool
-
Available on Object?, provided by the NullableObjectLeanExtensions extension
similar to JS "falsy", but treats empty collections as falsy, like any sane person wouldno setter - isTruthy → bool
-
Available on Object?, provided by the NullableObjectLeanExtensions extension
similar to JS "truthy", but treats empty collections as falsy, like any sane person wouldno setter
Methods
-
toBoolean(
) → bool -
Available on Object?, provided by the NullableObjectLeanExtensions extension
converts this to a bool based on its "truthy" value