Installation
npm install --save valjs
Simple example
Let's validate if a string is minimum 5 chars.
; let error = string// passes! (null)
Badass example
Let's validate this
const todo = id: 'todo-1' title: 'Ship Login Page' updatedAt: '2017-01-21T22:54:45Z' state: 'completed' assignees: 'user-1' subtasks: title: 'Design' title: 'Develop' title: 'QA'
Like this
; const error = object;// passes!
Here are all the supported types
;