utils/nth
@ckeditor/ckeditor5-utils/src/nth
module
Filtering
Functions
-
nth( index, iterable ) → *
Returns
nth
(starts from0
of course) item of the giveniterable
.If the iterable is a generator, then it consumes all its items. If it's a normal iterator, then it consumes all items up to the given index. Refer to the Iterators and Generators guide to learn differences between these interfaces.
Parameters
index : Number
iterable : Iterable.<*>
Returns
*
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.