var a = [1, 2, 3];
var b = [3, 2, 1];
var c = new Array(1, 2, 3);
alert(a == b + "|" + b == c);
demo
How can I check these array for equality and get a method which returns true if they are equal?
Does jQuery offer any method for this?
Watch video How to check if two arrays are equal with JavaScript? online without registration, duration 38 second in high hd quality. This video was added by user Code Samples 19 July 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 181 once and liked it 2 people.