Re-reading this I just realized that this creates a new array. I suspect that a for loop (or .forEach()) that modifies the elements of suggestions in place would be slightly more efficient.  And this is code where responsiveness matters, so we should pay attention to efficiency.