pub fn to_value<T: Serialize + ?Sized>(value: &T) -> Result<JsValue, Error>
Converts a Rust value into a JsValue.
JsValue