* Return a line of dashes "-" of a fixed length * @param {int} len * * @return normalized string
(len = 22)
| 111 | * @return normalized string |
| 112 | */ |
| 113 | function dashLineString(len = 22) { |
| 114 | // Prepare the dash line |
| 115 | let ret = ""; |
| 116 | while( ret.length < len ) { |
| 117 | ret += "-"; |
| 118 | } |
| 119 | |
| 120 | // Return the dash line |
| 121 | return ret; |
| 122 | } |
| 123 | |
| 124 | //-------------- |
| 125 | // |
no outgoing calls
no test coverage detected