wartość to tablica

var colors=["red","green","blue"];

if(Array.isArray(colors)){
    //colors is an array
}
Grepper