Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check array values equal js

[1,1,1,1].every( (val, i, arr) => val === arr[0] )   // true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #array #values #equal #js
ADD COMMENT
Topic
Name
9+4 =