arrayLength - Get number of elements in an array
arrayLength
gets the number of elements in a given array.
Syntax
Like many functions in DataPrime, arrayLength
supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.
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