Module

utils/count

@ckeditor/ckeditor5-utils/src/count

module

Filtering

Functions

  • count( iterator ) → Number

    Returns the number of items return by the iterator.

    count( [ 1, 2, 3, 4, 5 ] ); // 5;

    Parameters

    iterator : Iterable.<*>

    Any iterator.

    Returns

    Number

    Number of items returned by that iterator.