Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

compare 2 array element

function isEqual(a, b){
  return a.join() == b.join();
}
 
let a = ['J','a','v','a'];
let b = ['s','c','r','i','p','t'];
console.log(isEqual(a, b)); //false
 
PREVIOUS NEXT
Tagged: #compare #array #element
ADD COMMENT
Topic
Name
3+5 =