You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation where I want to validate that v2 is unique across all v's. I wrote a decorator to handle this and was pointed over here for similar functionality but was unable to do what I was trying to accomplish.
Adjust arrayUnique to use flatMap rather than map. This should only change its interaction with arrays.
Problem: Arrays that were to match based on reference would now be destructed into their components and I am unsure about the usage of this.
Alternative: Create a new decorator for this but it seems like overkill for this use case
The text was updated successfully, but these errors were encountered:
Description
I have a situation where I want to validate that v2 is unique across all v's. I wrote a decorator to handle this and was pointed over here for similar functionality but was unable to do what I was trying to accomplish.
Proposed solution
Adjust arrayUnique to use flatMap rather than map. This should only change its interaction with arrays.
Problem: Arrays that were to match based on reference would now be destructed into their components and I am unsure about the usage of this.
Alternative: Create a new decorator for this but it seems like overkill for this use case
The text was updated successfully, but these errors were encountered: