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

feat: add defu.arrayFn #21

Merged
merged 1 commit into from Aug 4, 2020
Merged

feat: add defu.arrayFn #21

merged 1 commit into from Aug 4, 2020

Conversation

Atinux
Copy link
Member

@Atinux Atinux commented Aug 4, 2020

  • Fix defu.fn() to avoid calling the function if default value is undefined
  • Add deu.arrayFn() to call the function only if default value is an Array

@codecov-commenter
Copy link

Codecov Report

Merging #21 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           29        33    +4     
  Branches         8         9    +1     
=========================================
+ Hits            29        33    +4     
Impacted Files Coverage Δ
src/defu.ts 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 e949864...11f710c. Read the comment docs.

@Atinux Atinux requested a review from pi0 August 4, 2020 15:06
src/defu.ts Show resolved Hide resolved
@pi0 pi0 changed the title feat: add defu.arrayFn feat: add defu.arrayFn Aug 4, 2020
@pi0 pi0 merged commit df05ed0 into master Aug 4, 2020
@pi0 pi0 deleted the feat/arrayFn branch August 4, 2020 15:25
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.

None yet

3 participants