W3cubDocs

/Haxe JavaScript

HaxeIterator<T>

package js.lib

Available on js

HaxeIterator wraps a JavaScript native iterator object to enable for-in iteration in haxe. It can be used directly: new HaxeIterator(jsIterator) or via using: using HaxeIterator.

Static methods

staticinlineiterator<T>(jsIterator:Iterator<T>):HaxeIterator<T>

Constructor

inlinenew(jsIterator:Iterator<T>)

Methods

inlinehasNext():Bool

inlinenext():T

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/lib/HaxeIterator.html