Method to determine if all values in an array are the same.


/ Published in: JavaScript
Save to your folder(s)

Usage:
var a = ['a','a','a'];
var b = a.AllValuesSame(): //true

var a ['1','1','2'];
var b = a.AllValuesSame(); //false

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.