Is there a way to configure feature symbol when highlighting them? I have written sample code here. See https://codepen.io/b2810s/pen/VwEEpbx .
However, it goes through the loop to configure the symbol with each feature. How can I avoid this loop? Consider the scenario where I need to highlight multiple features from multiple layers.
It was easier with ArcGIS Javascript API 3.x to configure the selection symbology with the feature layer. But I don't find similar with the 4.x.