Runtime-Type-Check-Proxy
Through "proxy" function, to check the arguments type. It is different from the static methods such as TypeScript and is only used as a lightweight runtime arguments checking function.
Type
number / string / boolean / null / array / date / regexp / function / undefined / NaN / Infinity
Installing
$ npm i rtcp --save
or download RTCP.min.js
Example
RTCP { console;} { console;} 1 ; '1' ; '1' ; // fail 1 1 ; 1 '1' ; // fail
Support as decorator
@ { console; } ; ; // fail