Custom hash and equal functions for Map and Set collections

There is another example. For language-independent encoding formats, many encodings support the set complex types of keys in Map, such as borsh encoding https://borsh.io/ or scale encoding GitHub - paritytech/parity-scale-codec: Lightweight, efficient, binary serialization and deserialization codec
If other languages use complex types for the key, then JS cannot handle these types well