jquery array compare values

Solutions on MaxInterview for jquery array compare values by the best coders in the world

showing results for - "jquery array compare values"
Amelia
19 Jan 2020
1const a1 = [1,2,3];
2const a2 = [1,3,2];
3const a3 = [1,3,4];
4(arr1).not(a2).length === 0 && $(arr2).not(a1).length === 0; // true
5(arr1).not(a3).length === 0 && $(arr2).not(a2).length === 0; // false