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

[BREAKING] Make take/drop/slice to validate their arguments and throw an appropriate error. #595

Merged
merged 1 commit into from
Feb 10, 2017

Conversation

vqvu
Copy link
Collaborator

@vqvu vqvu commented Feb 9, 2017

Changes:

  • Throws a TypeError if arguments are not a number. slice arguments are
    allowed to be null. In which case, they default to reasonable values.
  • Throws a RangeError if arguments are negative.

Also adds support for

  • @throws in docs.
  • markdown in @param description.
  • Talk about optional arguments in curried functions.

Ref #594.

… an appropriate error.

Changes:
- Throws a TypeError if arguments are not a number. slice arguments are
  allowed to be null. In which case, they default to reasonable values.
- Throws a RangeError if arguments are negative.

Also adds support for
- `@throws` in docs.
- markdown in `@param` description.
- Talk about optional arguments in curried functions.
@vqvu vqvu merged commit 1a4cead into caolan:master Feb 10, 2017
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