Files
DefinitelyTyped/types/linq4js/linq4js-tests.ts
2017-03-24 14:27:52 -07:00

14 lines
270 B
TypeScript

import "linq4js";
const array: string[] = ["test", "test2", "test3", "test4", "test5"];
array
.Add("test6")
.Remove("test3")
.Insert("test3", 2)
.Distinct()
.OrderBy(x => x)
.OrderByDescending(x => x)
.Select(x => x.length)
.Average();