This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
feature: Use a Set to check for uniqueness in Array #2210
Labels
flag: needs discussion
Issues which needs discussion before implementation.
type: feature
Issues related to new features.
Description
The current
@ArrayUnique
uses a filter based method to compare objects. This is anO(n^2)
solutions. The JS spec for Set states thatHence, I believe it would be more performant to use a Set based approach to check for uniqueness.
Proposed solution
Something as simple as
The text was updated successfully, but these errors were encountered: