How can I test if a variable is an array of string in TypeScript? Something like this:
function f(): string { var a: string[] = [\"A\", \"B\", \"C\"];
Try this:
if (value instanceof Array) { alert('value is Array!'); } else { alert('Not an array'); }