I have a working array comparison (tested with different kind of code), which looks like this:

```js
var a = [0,1,2]
var b = [1,2]

var match = []
var miss = []

func(a,b, match, miss);

function func(a, b, matches, misses) {  
  for (var i=0; i<b.length; i++) {
    for (var j=0; j<a.length; j++) { 
      if (b[i] == a[j]) {
        console.log("Found");
        matches.push(b[i])
      } 
    }
  }
  console.log("Matches: " + matches); 
  console.log("Misses: " + misses);
}
```

It works usually fine. However this time it doesn't. I have two arrays which have a different size (a is bigger than b) and can have different content like "100.AB 12345".

I can't explain why my function doesn't work in that case. Can someone help me out? It doesn't find any matches, everything is a miss, even though they are matches.