DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
check if array has same values javascript
const allEqual = arr => arr.every(v => v === arr[0]); allEqual([1,1,1,1]); // true
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#check
#array
#values
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+8 =
Submit