This snippet checks whether all elements of the array are equal.
const allEqual = arr => arr.every(val => val === arr[0]); allEqual([1, 2, 3, 4, 5, 6]); // false allEqual([1, 1, 1, 1]); // true
Username
Password
Remember Me
Email
Username or Email