为什么以下jquery代码有时会抛出错误"concat不是函数":
var myArray = $('div.foo')
.filter(function() { return $(this).is('.something'); })
.map(function() {
return [['a', 'b', $(this).val()]];
});
return myArray.concat(anotherArray);
Run Code Online (Sandbox Code Playgroud)