JS Array es igual a ignorar el orden

 equalsIgnoreOrder(a, b) {
      for (const v of new Set([...a, ...b]))
        if (a.filter((e) => e === v).length !== b.filter((e) => e === v).length)
          return false;
      return true;
    },
Creepy Capybara