When to Use ES6 Sets Instead of Arrays in JavaScript