JS
See the Pen thecodelog.com - ES6 Sets 1 by Deano (@deangilewicz) on CodePen.
You can add items to Set after the fact and use an iterator to keep order of items in check.
See the Pen thecodelog.com - ES6 Sets 2 by Deano (@deangilewicz) on CodePen.
Set uniqueness does not allow coercion, so 1 and “1” are considered distinct values.
See the Pen thecodelog.com - ES6 Sets 3 by Deano (@deangilewicz) on CodePen.