first
Returns the first element of an array.Apple
last
Returns the last element of an array.Cherry
at
Returns the element at a specific index (zero-based).| Argument | Type | Default | Description |
|---|---|---|---|
array | array | required | Source array |
index | number | 0 | Index to retrieve |
Banana
join
Joins array elements into a string with a separator.| Argument | Type | Default | Description |
|---|---|---|---|
array | array | required | Array to join |
separator | string | ”, “ | Separator between elements |
javascript, nodejs, api
javascript | nodejs | api
length
Returns the length of an array, string, or object.3
contains
Returnstrue if the array contains a value.
sum
Calculates the sum of array values or a specific property.| Argument | Type | Default | Description |
|---|---|---|---|
array | array | required | Array to sum |
property | string | null | Property name to sum (for object arrays) |
60
60
average
Calculates the average of array values or a specific property.| Argument | Type | Default | Description |
|---|---|---|---|
array | array | required | Array to average |
property | string | null | Property name (for object arrays) |
86.25
max
Returns the maximum value in an array.| Argument | Type | Default | Description |
|---|---|---|---|
array | array | required | Array to search |
property | string | null | Property name (for object arrays) |
49.99
min
Returns the minimum value in an array.| Argument | Type | Default | Description |
|---|---|---|---|
array | array | required | Array to search |
property | string | null | Property name (for object arrays) |
19.99

