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

Latest commit

 

History

History
18 lines (10 loc) · 446 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 446 Bytes

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