I am trying to understand what cordova / argscheck does. I could not find the documentation that describes what it is used for and how to use it.
I managed to find git repo , however there are no comments in the code. I also looked at a few plugins, and they seem to use it like this:
Device.prototype.getInfo = function(successCallback, errorCallback) { argscheck.checkArgs('fF', 'Device.getInfo', arguments); exec(successCallback, errorCallback, "Device", "getDeviceInfo", []); };
This code was taken from the Device plugin. Find here git repo here .
source share