Inside the OpenPGP.js module is this line of code:
return (0, _message.createVerificationObjects)
(signatureList, [literalDataPacket], keys, date, true)
1.
createVerificationObjects
is a function so I assume the following parenthetic are the values it requires. Why format this as
(function)(arguments)
instead of the traditional
(function(arguments))
2.
How can a return statement contain multiple values?
return (0, createVerificationObjects)
Shouldn't you be forced to choose between returning 0
or createVerificationObjects
?