I\'ve a situation where I need to check whether multiple variables are having same data such as
var x=1; var y=1; var z=1;
I want to check
if (x == y && y == z && z == 1)
There are no other simple or more efficient ways.