Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add array_map_unique() helper #175

Merged
merged 3 commits into from
Jul 4, 2022
Merged

Conversation

caendesilva
Copy link
Member

Adds a helper which is a wrapper for the array_map function. However, the returned array is filtered for duplicates and its keys are reset. The callback function also comes after the original array as I think that presents a more logical developer flow.

@codecov
Copy link

codecov bot commented Jul 4, 2022

Codecov Report

Merging #175 (122a8fb) into master (4f60f63) will not change coverage.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##              master      #175   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       770       770           
===========================================
  Files            100       100           
  Lines           1993      1996    +3     
===========================================
+ Hits            1993      1996    +3     
Impacted Files Coverage Δ
packages/framework/src/helpers.php 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f60f63...122a8fb. Read the comment docs.

@caendesilva caendesilva merged commit e044386 into master Jul 4, 2022
@caendesilva caendesilva deleted the add-array_map_unique-helper branch July 4, 2022 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant