Javascript – Comparing either values or index of two arrays in JS
I have two arrays with exact same values and index const colors = ["#da9f64", "#f67dd1", "red", "gray"]; const colorsff = ["#da9f64", "#f67dd1", "red", "gray"]; I want to create a function that will do something particular IF either values or index…