Build a Custom HashSet Store Class with Standard Set Operations

Implement a Store class that mimics the behavior of a HashSet data structure using plain JavaScript objects or Maps. It should support add(value), has(value), delete(value), clear(), size(), and iteration (forEach / Symbol.iterator). The key challenge is handling complex object types as values by serializing them into unique keys (e.g., using JSON.stringify or a hash function) so structural equality is used rather than reference equality.

Examples
Input: []
Output:
Hints

Build a Custom HashSet Store Class with Standard Set Operations

Implement a Store class that mimics the behavior of a HashSet data structure using plain JavaScript objects or Maps. It should support add(value), has(value), delete(value), clear(), size(), and iteration (forEach / Symbol.iterator). The key challenge is handling complex object types as values by serializing them into unique keys (e.g., using JSON.stringify or a hash function) so structural equality is used rather than reference equality.