(strFn, token)
| 57 | * @returns {ReturnStringCallback} a function that returns the part of the string after the token |
| 58 | */ |
| 59 | const getAfter = (strFn, token) => () => { |
| 60 | const str = strFn(); |
| 61 | const idx = str.indexOf(token); |
| 62 | return idx < 0 ? "" : str.slice(idx); |
| 63 | }; |
| 64 | |
| 65 | /** |
| 66 | * Returns a function that returns the part of the string before the token |
no test coverage detected