Among others, the following four data structures are new in ECMAScript 6:
WeakSet. This blog post explains how they work.
Map data structure in ECMAScript 6 lets you use arbitrary values as keys and is highly welcome.
Working with single entries:
> let map = new Map(); > map.set('foo', 123); > map.get('foo') 123 > map.has('foo'