@microsoft/fast-element > lengthOf
lengthOf() function
Enables observing the length of an array.
Signature:
export declare function lengthOf<T>(array: readonly T[]): number;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
array |
readonly T[] |
The array to observe the length of. |
Returns:
number
The length of the array.