(text)
| 10 | import {createHash} from "crypto" |
| 11 | |
| 12 | function hash(text) { |
| 13 | let sum = createHash("sha1") |
| 14 | sum.update(text) |
| 15 | return sum.digest("base64").slice(0, 10) |
| 16 | } |
| 17 | |
| 18 | function startAndEnd(text) { |
| 19 | var words = text.split(/\W+/); |
no test coverage detected