pub fn try_from_js_option<T>( val: impl Into<JsValue>, ) -> Result<Option<T>, String>where for<'a> T: TryFrom<&'a JsValue>, for<'a> <T as TryFrom<&'a JsValue>>::Error: Display,
Attempts to unpack a JS value into a typed value, returning None if the JS value is undefined.
None
undefined