Skip to main content

convert_function

Function convert_function 

Source
pub fn convert_function(params: &Value, spec: &Value) -> Value
Expand description

Convert a legacy function object to the equivalent modern expression.

params is the function object; spec is the property’s style-spec entry (pass &Value::Null when unavailable). The result is a modern expression as raw JSON, ready for parse.