Closed whlit closed 2 months ago
Hmmmm, looking at this now, we probably should have made Option
an interface!
Thanks for the PR. This is a great helper function. I think to keep the API surface area of Huh? as small as possible I'd recommend we don't add this to core huh? but rather people can use this as a copy / paste helper in their own code / forms! Thank you so much for the work / contribution here. ❤️
Add a method to get the key from the value to generate the options.