JSFiddle - React, Tailwind, and code Playground

JavaScript

function isUniform(list) {
    var firstItem = list[0];
    for (var i = 0; i < list.length; i++){
        if(firstItem === list[i]){
            console.log("True");
        }else {
            console.log("False");
        };
    };
}

isUniform(['a','a','a'])