how to check if it's an array javascirpt code example Example: js check if is array if(Array.isArray(colors)){ //colors is an array }