back to Overview

list.length

Contains the number of elements in the Minified list.
Available in all modules.

Syntax

length

Description

Contains the number of elements in the Minified list.

Example

With Web module:

var list = $('input');
var myValues = {};
for (var i = 0; i < list.length; i++)
   myValues[list[i].name] = list[i].value;

Example

With Util module:

var list = _(1, 2, 3);
var sum = 0;
for (var i = 0; i < list.length; i++)
   sum += list[i];

Comments

comments powered by Disqus

back to Overview

Functions