( sections )
| 56 | `; |
| 57 | |
| 58 | const writeHeader = ( sections ) => |
| 59 | `# Design Patterns JS |
| 60 | |
| 61 | ${sections.map( writeSectionContents ).join('')} |
| 62 | `; |
| 63 | |
| 64 | const writeSectionContents = ({ name, topics }) => |
| 65 | `**[${reverseDashCase(name)}](#${dashCase(name)})** |