Skip to main content

truthy

Function truthy 

Source
pub fn truthy(value: &Value) -> bool
Expand description

undefined, null, false and "" are false; 0 is TRUE (a count of zero still shows).