mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
14 lines
270 B
TypeScript
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();
|