function isUniform(arr) {
    var firstItem = arr[0];
    var result = true;
    arr.forEach(function (item, index, array) {
        if (firstItem !== item) {
            result = false;
            return;
        }
        firstItem = item;
    });
    return result;
}
/* isUniform()
 *
 * Write a function isUniform() which takes an array as an argument and
 * returns true if all elements in the array are identical
 */
isUniform()
Write a function isUniform() which takes an array as an argument and
returns true if all elements in the array are identical
isUniform () Write a function isUniform () which takes an array as an argument and returns true if all elements in the array are identical
function isUniform(arr) {
    var firstItem = arr[0];
    var result = true;
    arr.forEach(function (item, index, array) {
        if (firstItem !== item) {
            result = false;
            return;
        }
        firstItem = item;
    });
    return result;
}
function isUniform ( arr ) { var firstItem = arr [ 0 ] ; var result = true ; arr . forEach ( function ( item , index , array ) { if ( firstItem !== item ) { result = false ; return ; } firstItem = item ; } ) ; return result ; }
isUniform()
 Write a function isUniform() which takes an array as an argument and
 returns true if all elements in the array are identical
isUniform () Write a function isUniform () which takes an array as an argument and returns true if all elements in the array are identical