linq.ElementAt

Gets the element at a particular index from the array

Overloads

  • Object ElementAt (index)

Object ElementAt (index)

Gets the element at a particular index from the array

Example

var myArray = [1,3,4,4,4,5];
//Returns 3
myArray.ElementAt(1);

//Throws an exception
myArray.ElementAt(42);

Last edited Sep 23, 2011 at 5:36 AM by mlorbetske, version 1

Comments

No comments yet.