babelcodes
9/16/2017 - 6:10 PM

TypeScript > Array

TypeScript > Array ▶︎ babel.codes/TypeScript/Array

// Array
let list1 = [1, 2, 3];
let list2: number[] = [1, 2, 3];
let list3: Array<number> = [1, 2, 3]; // uses a generic