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

Adding a fallback param to utility functions #107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Dalfons0
Copy link

I added to the utility functions an optional fallback function parameter so throwing an error can be avoided, anyway we will be maintaining the error throw as a default behaviour so we keep the functions backward compatible, and at the same time we are adding the flexibility to the user to decide what it's the behaviour when something it's missing (like returning undefined or a default value), as some times working with this in some projects (overall front end projects) could lead into undesirable consequences if not handled properly.

This also add the requested feature in the issue #88

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