Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 947 Bytes

Collection.getByIndex.rst

File metadata and controls

49 lines (34 loc) · 947 Bytes

Collection.getByIndex

Возвращает элемент коллекции с заданным индексом.

Syntax

Collection.getByIndex(index)

Parameters

Name Type Description
index Integer Индекс элемента.

Returns

Элемент коллекции с заданным индексом.

Examples

var collection = new Collection([ 'A', 'B', 'C' ]);
var item0 = collection.getByIndex(0); // 'A'
var item1 = collection.getByIndex(1); // 'B'
var item2 = collection.getByIndex(2); // 'C'

See Also