@@ -14,14 +14,14 @@ const log = (a, description = null) => {
1414
1515/**
1616 * Safely join array elements with proper undefined/null handling
17+ *
1718 * @param {any } input - Array-like input to join
18- * @param {string } [delimiter='' ] - String to use as delimiter between elements
19- * @param {string } [attribute] - Optional object property to extract before joining
20- * @param {Object } [options] - Additional options for join behavior
21- * @param {boolean } [options.filterEmpty=true ] - Whether to filter out empty/null/undefined values
22- * @param {boolean } [options.toString=true ] - Whether to convert values to strings before joining
19+ * @param {string } [delimiter] - String to use as delimiter between elements
20+ * @param {string | null } [attribute] - Optional object property to extract before joining
21+ * @param {object } [options] - Additional options for join behavior
22+ * @param {boolean } [options.filterEmpty] - Whether to filter out empty/null/undefined values
23+ * @param {boolean } [options.toString] - Whether to convert values to strings before joining
2324 * @returns {string } Joined string or empty string if invalid input
24- *
2525 * @example
2626 * join(['a', 'b', 'c'], ', ') // 'a, b, c'
2727 * join([{name: 'John'}, {name: 'Jane'}], ', ', 'name') // 'John, Jane'
@@ -86,10 +86,11 @@ const join = (input, delimiter = '', attribute = null, options = {}) => {
8686
8787/**
8888 * Get user name by user ID with format options
89+ *
8990 * @param {string } userId - ID of the user
90- * @param {Object } options - Display options
91- * @param {boolean } [options.identifyCurrentUser=false ] - Whether to add "(you)" for current user
92- * @param {string } [options.format='full' ] - Name format: 'full', 'short', or 'initial'
91+ * @param {object } [ options] - Display options
92+ * @param {boolean } [options.identifyCurrentUser] - Whether to add "(you)" for current user
93+ * @param {string } [options.format] - Name format: 'full', 'short', or 'initial'
9394 * @returns {string } User's name in requested format
9495 */
9596const getUsername = function ( userId , options = { } ) {
@@ -127,7 +128,7 @@ const getUsername = function (userId, options = {}) {
127128
128129/**
129130 *
130- * @returns {Object } The context data
131+ * @returns {object } The context data
131132 */
132133const getContext = function ( ) {
133134 return this . ctx
0 commit comments