@@ -42,3 +42,23 @@ console.log(result);
4242var array = [ "item1" , "item2" , "item3" , "item2" , "item4" ] ;
4343var res2 = array . TakeWhile ( '(x, s) => x != "item2" || s.c < 1' , 's => s.c = 0' , '(x, s) => x == "item2" && s.c++' ) ;
4444console . log ( res2 ) ;
45+ console . log ( array . FindLastIndex ( function ( x ) { return x == "item2" ; } ) ) ;
46+ //let test: Array<Linq4JS.Entity> = [new testClass("test", 5, 1), new testClass("test5", 3, 2)];
47+ //console.log(test);
48+ //console.log("Foreach");
49+ //test.ForEach(x => console.log(x.Name));
50+ //console.log("Foreach End");
51+ //console.log(test.Take(1));
52+ //console.log(test.Skip(1));
53+ //test.Update(new testClass("test1235234234234", 3, 1), "x => x.OtherId");
54+ //console.log(test);
55+ //console.log(test.Where(x => x.Id == 3));
56+ //console.log(test.Any(x => x.Id == 78));
57+ //console.log(test.First(x => x.Id == 3));
58+ //console.log(test.FirstOrDefault());
59+ //console.log(test.Last(x => x.Id == 3));
60+ //console.log(test.LastOrDefault(x => x.Id == 44));
61+ //console.log(test.Select(x => new displayClass(x)));
62+ //test.Remove(new testClass("test55", 3, 1), x => x.OtherId);
63+ //console.log(test);
64+ //console.log(test.Count(x => x.Id > 3));
0 commit comments