My eslint config
/** * 获取n个数组的差集 * * @param {Array} arrs * @returns {Array} */ function getArrComplement(...arrs) { const intersection = getArrIntersection(...arrs); return getArrUnion(...arrs).filter((el) => !intersection.includes(el)); }