Answers for "jquery array compare values"

0

jquery array compare values

const a1 = [1,2,3];
const a2 = [1,3,2];
const a3 = [1,3,4];
(arr1).not(a2).length === 0 && $(arr2).not(a1).length === 0; // true
(arr1).not(a3).length === 0 && $(arr2).not(a2).length === 0; // false
Posted by: Guest on October-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language