Explorar o código

[doc] mark parameter as optional

mightyplow %!s(int64=6) %!d(string=hai) anos
pai
achega
114871d9a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/isRequired.js

+ 1 - 1
lib/isRequired.js

@@ -2,7 +2,7 @@
  * A function which can be used as a function parameter default which throws an error
  * if the parameter is undefined
  *
- * @param {string} varname - name of the variable for the output
+ * @param {string} [varname] - name of the variable for the output
  * @throws {Error}
  */
 function isRequired (varname) {