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

Default arguments in functions not working #30

Closed
fimius23 opened this issue Mar 29, 2019 · 1 comment
Closed

Default arguments in functions not working #30

fimius23 opened this issue Mar 29, 2019 · 1 comment

Comments

@fimius23
Copy link

If I have a default argument in a function, and pass void 0 to the function call, the default argument does not get applied. Looks like your method of cloning parameters turns undefined into null. This time I do have a working example... :)

https://stackblitz.com/edit/angular-gvjnvx?file=src%2Fapp%2Ftest.service.spec.ts

angelnikolov added a commit that referenced this issue Mar 29, 2019
#30 Fixed an issue where undefined parameters were changed to null
@angelnikolov
Copy link
Owner

angelnikolov commented Mar 29, 2019

@fimius23 Nice one! Fixed and tested. Will publish 1.1.5 in a minute. Thanks!!!

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

No branches or pull requests

2 participants