Underscore 1.6.0 _.intersection
bug (Meteor package)
#13001
Labels
Milestone
_.intersection
bug (Meteor package)
#13001
Meteor 2.15 with Underscore 1.6.0
The Meteor version of of the
_.intersection
function in the underscore package returns unexpected results.https://github.com/meteor/meteor/blob/master/packages/underscore/underscore.js#L528-L535
In the copy of the function below,
_.contains
returns boolean, so the>= 0
comparison should be removed:Interestingly the v1.6.0 commit in the underscore repo doesn't have this problem:
https://github.com/jashkenas/underscore/blob/1f4bf626f23a99f7a676f5076dc1b1475554c8f7/underscore.js#L506
The text was updated successfully, but these errors were encountered: