Skip to content

Instantly share code, notes, and snippets.

@eivindingebrigtsen
Created October 13, 2011 08:52
Show Gist options
  • Save eivindingebrigtsen/1283773 to your computer and use it in GitHub Desktop.
Save eivindingebrigtsen/1283773 to your computer and use it in GitHub Desktop.
(function(){
var arr = SB.data.storage.accounts['91002064265'].categorization.matches['80850'].transactions;
var ob = {};
var length = 0;
for(var a in arr){
if(arr[a] in ob){
console.error(arr[a], ob[arr[a]]);
}else{
var trx = SB.find.Transaction(arr[a]);
if(trx.accountNumber !== '91002064265'){
length++;
console.warn(trx, trx.accountNumber);
}
ob[arr[a]] = true;
}
}
return arr.length - length;
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment