back to Overview

_.isList()

Checks whether the given object resembles a list or array.
Util module only.

Syntax

_.isList(obj)

Parameters

obj
the object to test
(return value)
true if the object is a list or array, false otherwise.

Description

Checks whether the given object resembles a list or array. To qualify, it must have a length property, but must not be a string, a function or have a nodeType property.

Comments

comments powered by Disqus

back to Overview

Functions