Get argument count (or even names) of javascript function object

前端 未结 2 837
北荒
北荒 2021-01-02 02:04

I want to evaluate callback function before accepting it. This means I need to know at least the count of accepted argumens - if count doesn\'t match, I\'ll leave warning in

2条回答
提交回复
热议问题