Array.isArray(object);
var colors=["red","green","blue"]; if(Array.isArray(colors)){ //colors is an array }