Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.
/ isType Public archive

Returns true if a value matches the given type

License

Notifications You must be signed in to change notification settings

aleclarson/isType

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isType v1.0.2 stable

Returns true if the value's type is the given type.

Also compatible with any Validator.

isType = require "isType"

isType 0, Number                # => true

isType [], Array                # => true

isType null, Null               # => true

isType true, [ Boolean, Void ]  # => true

About

Returns true if a value matches the given type

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published