public class JavaScriptSemantics extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isTrueish(Object value)
Gets the boolean value of the provided value:
null is false. |
public static boolean isTrueish(Object value)
null is false.
true, except for the empty string.
true, except for 0 and
NaN.
true.
value - the value to check for truthnesstrue if the provided value is trueish according to
JavaScript semantics, otherwise falseCopyright © 2019. All rights reserved.