Type Checking
Check for what you need
Mainly for framework developers, although it is just as usable in an app
Installation
npm install --save type-checking
Usage
- By registering (recommended, but can cause conflicts)
require'type-checking/register''responds_to' array = arrayresponds_to 'indexOf' #true arrayresponds_to 'indexOf''join''concat'#true :-> :-> :-> arrayresponds_to ArrayInterface #true
- Directly
responds_to = require 'type-checking' array = responds_to array'indexOf' #true