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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -