let mySet = new Set([1, 2, 2, 3, 4, 5, 7]);

let myArray = [ ...mySet.add(6)];
myArray.shift();

//What do you expect to be at index 4?

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.