A type-checking wrapper for functions, values, and expressions.
const types = require('check-types')
const safeMap = types([Function, Array], (fn, array) => array.map(fn))
// Syntax
// const/let/var name = types([t1, t2, ..., tN], function/value/expression)
// Factory
const arrayType = types([Array])
- Write tests.