Skip to content

Instantly share code, notes, and snippets.

@joepie91
Created February 1, 2015 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joepie91/6e80b50b4394d941c2c8 to your computer and use it in GitHub Desktop.
Save joepie91/6e80b50b4394d941c2c8 to your computer and use it in GitHub Desktop.
- Requirements
optional
required
- Types
string
number
boolean
date
array
object
function
error
regexp
arguments
- Generic formats
integer
alpha
numeric
alphaNumeric
lowerCase
upperCase
hex
ascii
- Specific formats
json
html
phoneNumber
creditCard
ip
hexColor
mongoId
- Contents
empty
length
unique
contains
matches
startsWith
endsWith
sorted
- Comparisons and numeric
equals
lessThan
lessThanOrEquals
greaterThan
greaterThanOrEquals
divisibleBy
precision
- Utilities
annotate
eval
try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment