Function create_boolean_prop
Source pub fn create_boolean_prop(key: &str, value: Option<bool>) -> PropOrSpread
Expand description
Creates a PropOrSpread with a boolean key and value.
§Arguments
key - The boolean key
value - The value of the property
§Example
ⓘlet prop_or_spread = prop_or_spread_boolean_factory("key", true);