JSFiddle - React, Tailwind, and code Playground

by Oleh Kotsubko

JavaScript

var Array1= [1,2,3,4,5,6,7,8,9,10];

var Array2= [1,2,3,4,5,6,7,8,9,10];

console.log(Array1.length === Array2.length && Array1.every((value, index) => value === Array2[index]))