linq.TakeWhile

Takes elements from the start of the array while a specified condition is true.

Overloads

  • Array TakeWhile (condition)

Array TakeWhile (condition)

Takes elements from the start of the array while the specified condition is true.
var myArray = [1, 2, 3, 4];
//Returns [1, 2]
myArray.SkipWhile("o => o < 3");

Last edited Sep 24, 2011 at 7:31 AM by mlorbetske, version 1

Comments

No comments yet.