Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 15th, 2012  |  syntax: JavaScript  |  size: 0.29 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. return jQuery.grep(this.originalAccounts, function(value, i) {return value.type == typeRecherche;});
  2.  
  3.  
  4.  
  5. var newTab = {}
  6. for (var i=0 ; i < this.originalAccounts.length ; i++) {
  7.         if (this.originalAccounts[i].type == typeRecherche) {
  8.                 newTab.push(this.originalAccounts[i]);
  9.         }
  10. }
  11. return newTab;