176 markdown += `\n`;
177 markdown +=
178 method?.request?.description !== undefined
179 ? `#${method?.request?.description || ""}\n\n`180 : ``;
181 markdown += `### ${method?.request?.method} ${method.name}\n\n`;
182 markdown += `>\`\`\`\n`;
20 markdown += `# ${data.info.name}\n\n`;
21 markdown +=
22 data.info.description !== undefined
23 ? `${data.info.description || ""}\n` 24 : ``;
25 markdown += readItems(data.item);
26 markdown += `\n`;
Expressions that consistently result in either true or false when comparing values, and logical operations like ||, &&, and ?? that consistently either skip or fully evaluate their operands, often indicate mistakes. Logical operations that always yield the same result could lead to unexpected behavior or bugs in the program.
const arrIsEmpty = someArr === [] // Will always evaluate to false
const arrIsEmpty = someArr.length === 0