In javascript: Array.includes() is O(n) Set.has() is O(1)
Array.prototype.includes; // O(n) time complexity