array.count

This function counts the length of an array.

Syntax

array.count(items)

Arguments

Argument

Type

Description

items

array of type any

Array whose length needs to be counted.

Returns

Type

Description

int

Number that indicates the length of the array.

Examples