nidx
Aarktype
•Created by nidx on 4/2/2025 in #questions
functions that take in types
I have certain patterns i would like to make simpler like default arrrays or unique checks but I can't seem to figure out how to type them
this is an example I would like to streamline
I was able to write wrapper functions but only if i restrict them to being
string[]
is there a better way I can do this that is more generic
I did try this from another post, but it seems to stomp on the type and did not work for narrow
2 replies