JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
JavaScript
$(document).ready(function(){
var a = [2, 4, 7, 2, 8]; // all values are not same
var b = [2, 2, 2, 2, 2];
var test= $(a).not(b).length === 0;
alert(test);
});