extjs - Check array for equals elements -


Hello, I have an array, and when I check this array for the same elements, I'll click on the button and if all the elements are equal function (button) {var win = button.up ('window' ), Grid = win.down ('grid'), value = []; Console.log (value)}}} / pre>

and example status:

  if (equals elements? Is it?) {Some functions} and nothing else;  

Contains, use the equal method Does a shallow comparison.

  if (Ext.Aray.equals ([1, 2, 3], [1, 2, 3])) {// do something}  
< / Div>

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -