0.1.4 • Published 7 years ago
typical-function v0.1.4
typical-function
typical-function is a javascript module to check the types of the parameters of a function.
REQUIREMENT
###ES6
USAGE
const func = require('typical-function');
const test = func(String, Object, function module(a, b) {
console.log(a);
console.log(b);
});
test('asd', {});//correct
test(123, []);//error!