Function create_key_value_prop
Source pub fn create_key_value_prop(key: &str, value: Expr) -> PropOrSpread
Expand description
Creates a PropOrSpread from a key and value.
§Arguments
key - The key of the property
value - The value of the property
§Example
ⓘlet prop_or_spread = create_key_value_prop("key", value);