Skip to main content

isCollection

Validates if the supplied input is a collection. A collection is a list which is enumerable using a length property and an item function.

Signature

isCollection(input: any): boolean

Parameters

NameTypeOptionalDescription
inputanyNoInput to validate.

Return value

Returns true if the input is a collection.