Hey all, I'm trying to code a basic difference() function that can accept one of three kinds of comparators:
- Nothing (compare elements directly)
- String (key of both arr1 and arr2)
- Compare function (gets items from both arrays)
It looks something like this and I'm getting errors on using string to index the generics. Could anyone help me create a type from a key from both T and U? Thanks!