Combine two array's data using inner join
问题 I've two data sets in array: arr1 = [ ['2011-10-10', 1, 1], ['2007-08-09', 5, 3], ... ] arr2 = [ ['2011-10-10', 3, 4], ['2007-09-05', 1, 1], ... ] I want to combine them into one array like this: arr3 = [ ['2011-10-10', 1, 1, 3, 4], ... ] I mean, just combine those lines with the same date column. EDIT Thanks everyone, Just for clarification, I don't need those lines which not appear in both array, just drop them. 回答1: Organize your data differently (you can easily convert what you already