code: function arrayIntersection(arr1, arr2) {
    if (_.isEqual(arr1, arr2)) {
      return arr1;
    }
  
    return arr1.filter(v => arrayIncludes(arr2, v));
  }
docs: _.intersection doesn't work with ObjectIds, TODO: replace with _.intersectionWith(..., Tyr.isEqual) when lodash upgraded