Closed mhsattarian closed 3 years ago
You're right. I fixed the default params in a new commit.
will add the test too in the next one.
I've added tests for jalaaliToDateObject
with time params, and run them locally. everything looks fine.
here's a screenshot, just in case:
Thanks, merged.
Hey,
Thanks for the PR. However, I see that you've used default parameters, which is a ES2015 feature. Even though most browsers support it, I believe this library is written in the old style (for example uses
var
instead ofconst
andlet
). So It's better to keep it that way.I think maybe just dropping the
= null
part from the function definition will be enough.It would be great if you add a few test cases too.