js_sys

Function try_iter

Source
pub fn try_iter(val: &JsValue) -> Result<Option<IntoIter>, JsValue>
Expand description

Create an iterator over val using the JS iteration protocol and Symbol.iterator.