Check if elements in two arrays are same irrespective of index

前端 未结 2 1373
失恋的感觉
失恋的感觉 2021-01-26 01:01

Suppose if I have two arrays - array1 and array2

let array1 = [\"abc\",\"pqr\",\"xyz\"]
let array2 = [\"pqr\", \"xyz\", \"abc\"]
         


        
2条回答
提交回复
热议问题