js: use destructured option parameters
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Thu, 23 Aug 2018 10:15:59 +0000 (12:15 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Thu, 23 Aug 2018 10:15:59 +0000 (12:15 +0200)
commit3fd6837fce9b339b8b09a800a969e0950e78250c
treeaf772f88219f65db55a77096d5aacd1ab0a2760f
parent60dc499abd89f7e62a7b9cad943a96faa65187d5
js: use destructured option parameters

--
* Adds to f0409bbdafcbd4f8b0be099a6b3ce0d5352c9bcd and makes use of
  destructuring, allowing for defaults, and cleaning up the
  validation.
lang/js/src/Keyring.js
lang/js/src/gpgmejs.js
lang/js/unittests.js