Skip to main content

live_iterator

Function live_iterator 

Source
pub fn live_iterator<'js, T>(
    ctx: &Ctx<'js>,
    parent: Class<'js, T>,
    project: Project<'js, T>,
) -> Result<Object<'js>>
where T: JsClass<'js> + 'js,
Expand description

Build a live iterator over parent, projecting each position through project. The result is itself iterable ([Symbol.iterator] returns this), so it works with for..of, spread and Array.from.