1 | import { OptionalFindOptions } from './findoptions';
|
2 | /**
|
3 | * Returns a promise that represents how many elements in the specified iterable sequence satisfy a condition
|
4 | * otherwise, the number of items in the sequence.
|
5 | *
|
6 | * @export
|
7 | * @template T The type of elements in the source collection.
|
8 | * @param {Iterable<T>} source An iterable sequence that contains elements to be counted.
|
9 | * @param {OptionalFindOptions<T>} [options] The options for a predicate for filtering and thisArg for binding.
|
10 | * @returns {number} The number of matching elements for the given condition if provided, otherwise
|
11 | * the number of elements in the sequence.
|
12 | */
|
13 | export declare function count<T>(source: Iterable<T>, options?: OptionalFindOptions<T>): number;
|