// let arr_name, elemType[];
let list: number[] = [1, 2, 3];
// Generic array type, Array<elemType>:
let list: Array<number> = [1, 2, 3];
if (Array.isArray(value)) {
var somethingIsNotString = false;
value.forEach(function(item){
if(typeof item !== 'string'){
somethingIsNotString = true;
}
})
if(!somethingIsNotString && value.length > 0){
console.log('string[]!');
}
}
let arraytest: any[] = [1, 2, 3]
console.log(arraytest)
/*
Output: [1, 2, 3]
or try this
*/
console.log([1, 2, 3])// clever trick
let list: number[] = [1, 2, 3];
var listOfLists : number[][];
// or
const listOfLists : Array<Array<number>>;