Skip to content

Add duplicates validation to array#403

Merged
hueniverse merged 2 commits intohapijs:masterfrom
gaastonsr:array-unique
Sep 19, 2014
Merged

Add duplicates validation to array#403
hueniverse merged 2 commits intohapijs:masterfrom
gaastonsr:array-unique

Conversation

@gaastonsr
Copy link
Contributor

Closes #401.

As suggested only works for literals (numbers and strings).

@hueniverse hueniverse self-assigned this Aug 21, 2014
@gaastonsr
Copy link
Contributor Author

Implemented as a rule and not an exception.

hueniverse pushed a commit that referenced this pull request Sep 19, 2014
@hueniverse hueniverse merged commit 919ab66 into hapijs:master Sep 19, 2014
@hueniverse hueniverse added this to the 4.7.0 milestone Sep 19, 2014
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for (var i = 0, il = value.length; i < il; ++i)

@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate duplicates in array

2 participants