Module

utils/first

@ckeditor/ckeditor5-utils/src/first

module

Filtering

Functions

  • first( iterator ) → T | null

    Returns first item of the given iterator.

    Type parameters

    T

    Parameters

    iterator : Iterator<T, any, undefined>

    Returns

    T | null