JSFiddle - React, Tailwind, and code Playground

by Ray Mak

TypeScript

var data: string = 0;
if (typeof data === 'array') {
	alert(data);	
}
else if (data instanceof Array) {
	console.log("It is array");
}
else {
console.log(typeof data)
}