Function try_from_js_array

Source
pub fn try_from_js_array<T>(val: impl Into<JsValue>) -> Result<Vec<T>, String>
where for<'a> T: TryFrom<&'a JsValue>, for<'a> <T as TryFrom<&'a JsValue>>::Error: Display,
Expand description

Attempts to unpack a JS array into a vector of typed values.