js best practive commenting @param code example
Example: javascript function description standards
/**
* @name hash
* @description Random hashing algorithm I found on Stack Overflow.
* @param {string} str
* @param {boolean} asString
* @param {*} seed
*
* @returns {string} hash
*/
function hash(str, asString, seed) {