Skip to main content

get_or_blank

Function get_or_blank 

Source
pub fn get_or_blank(map: &Map<String, Value>, key: &str) -> Value
Expand description

entry.get(key) or "" — falsy values (null, "", 0, false) become an empty string, anything else passes through.