Skip to content
This repository was archived by the owner on Sep 5, 2018. It is now read-only.
aleclarsonPublic archive

About

Returns true if a value matches the given type

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages