Skip to content

Conversation

@FloEdelmann
Copy link
Owner

@FloEdelmann FloEdelmann commented Aug 18, 2022

Include some common validator functions for convenience:

  • isNegative: only allows negative numbers (< 0)
  • isPositive: only allows positive numbers (> 0)
  • isNonNegative: only allows non-negative numbers (>= 0)
  • isNonPositive: only allows non-positive numbers (<= 0)

@FloEdelmann FloEdelmann merged commit 8ea09e0 into main Aug 18, 2022
@FloEdelmann FloEdelmann deleted the validators branch August 18, 2022 15:20
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