The uppercamelcase function was only considering simple names (activity, airplay, etc.). Icons with compound names (alert-triangle, arrow-down-circle, etc.) were displaying an error message in the console:
I made a change to the function to also consider icons with compound names and added a unit test.
The uppercamelcase function was only considering simple names (activity, airplay, etc.). Icons with compound names (alert-triangle, arrow-down-circle, etc.) were displaying an error message in the console:
I made a change to the function to also consider icons with compound names and added a unit test.