NEWCKEditor AI is here! Learn how to supercharge your editor with AI on our webinar.
Sign up (with export icon)

utils/first

Api-module iconmodule

Functions

  • Chevron-right icon

    first( iterator ) → T | null

    Returns first item of the given iterator.

    Type parameters

    T

    Parameters

    iterator : Iterator<T>

    Returns

    T | null