pub fn into_js_array<T, U>(value: impl IntoIterator<Item = U>) -> TExpand description
Converts the given iterator into a JS array of the custom type T.
The type T would be defined in an extern "C" block, e.g.
use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(typescript_type = "MyType[]")]
pub type MyTypeArray; // <-- this would be `T`
}