There are implementations of the Set and Map data structures in JS. They can be used as alternatives to arrays (for storing 1D data) and objects (for storing key-value pairs). They have two advantages:
O(1) time-complexity for read and write operations
Guaranteed uniqueness of elements (set) / keys (map)