arrayLength - Get number of elements in an array
arrayLength
gets the number of elements in a given array.
Syntax
Arguments
Name | Type | Required | Description |
---|---|---|---|
array | array of type any | true | The array to test |
Example - Find out how many jobs are waiting
Consider the following document:
If we wish to know how many loading jobs are waiting to be executed, we can use arrayLength
:
This results in the following document:
Theme
Light