Fix JSDoc issues

Fix missing documentation for parameters and return types, incorect
config and errors in type definitions.
This commit is contained in:
Hornwitser committed 2020-06-17 20:53:18 +02:00
1 parent 3dba92a03d
commit 703fda43ad
20 files changed
+193 -52

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ Helper functions related to objects
/**
Deep clones an object, is actually just JSON.parse(JSON.stringify()) but looks cleaner.
@param {object} obj to clone
@returns {object}
@returns {object} The cloned object.
@example
a = {"thingy":"with a value"};
@@ -22,7 +22,7 @@ module.exports.deepclone = function(obj){
/**
Checks if a string is valid JSON using try/catch. If passed an object it will always return true.
@param {string} string to verify
@returns {boolean}
@returns {boolean} true if valid JSON.
@example
objectOps.isJSON("99 bottles of beer"); // false