Implementing a "Set" data structure

I’m trying to use a set in the little javascript IDE thing. Sets are things i’ve used in a few other languages but i’m having trouble with it in JS. Do I need to use an upgraded ecmascript version? like in the /jshint esversion: 6/ declaration?
Other than that it should just be const aSet = new Set(); right?