Skip to content

Add optional "config" param to array.unique for ignoreUndefined. Closes #1498#1511

Merged
Marsup merged 1 commit intohapijs:masterfrom
WesTyler:unique_ignoreUndefined_#1498
Jun 9, 2018
Merged

Add optional "config" param to array.unique for ignoreUndefined. Closes #1498#1511
Marsup merged 1 commit intohapijs:masterfrom
WesTyler:unique_ignoreUndefined_#1498

Conversation

@WesTyler
Copy link
Contributor

Add the optional second param to array.unique, per the discuss in #1498 .

I named the param configs to avoid shadowing the already-defined options param in the test callback. Let me know if you prefer some other param name.

@Marsup Marsup self-assigned this Jun 9, 2018
@Marsup Marsup added the feature New functionality or improvement label Jun 9, 2018
@Marsup Marsup added this to the 13.5.0 milestone Jun 9, 2018
@Marsup Marsup merged commit 83eb8eb into hapijs:master Jun 9, 2018
robmcguinness pushed a commit to hapi-swagger/hapi-swagger that referenced this pull request Apr 30, 2019
@see hapijs/joi#1511

unique args now include ingoreUndefined: false as default.
@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.

2 participants