arg types
A very simple module to do runtime argument type checking of functions.
Usage
Installation:
Use yarn
or npm
:
$ [sudo] npm install --save arg-types
Example:
The very contrived example below would stop "33"
being returned by the function.
var argTypes = // define your function signature, the next line returns a function// which expects an `arguments` objectvar helloSignature = { // add this line as the first one in the target function return a + b + c} try catch ex