Skip to content

aleclarson/assertValid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assertValid v1.0.1

const assertValid = require('assertValid');

const value = 0;
assertValid(value, 'string') // => TypeError('Expected a string')
assertValid(value, 'number') // => undefined

See the valido documentation to learn more.

About

Simple yet powerful assertion

Resources

License

Stars

Watchers

Forks

Packages

No packages published