(str)
| 5 | } |
| 6 | |
| 7 | function strlen(str) { |
| 8 | let code = codeRegex(); |
| 9 | let stripped = ('' + str).replace(code, ''); |
| 10 | let split = stripped.split('\n'); |
| 11 | return split.reduce(function (memo, s) { |
| 12 | return stringWidth(s) > memo ? stringWidth(s) : memo; |
| 13 | }, 0); |
| 14 | } |
| 15 | |
| 16 | function repeat(str, times) { |
| 17 | return Array(times + 1).join(str); |
no test coverage detected
searching dependent graphs…