I am trying to figure out what does cordova/argscheck do. I was not able to find any documentation that describes what is it used for nor how to use it.
I managed to find its git repo however no comments are mentioned in the code. I have also taken a look at a couple of plugins and they seem to use it as follows:
Device.prototype.getInfo = function(successCallback, errorCallback) {
argscheck.checkArgs('fF', 'Device.getInfo', arguments);
exec(successCallback, errorCallback, "Device", "getDeviceInfo", []);
};
This code has been taken from the Device plugin. Find the git repo here.
'sFF'
, but thecheckArgs(...)
converts everything to uppercase to then check against this list from @thedethfox. – Rhamnaceous