( start: start )
| 815 | */ |
| 816 | |
| 817 | const startsWith = <input, const start extends string>( |
| 818 | start: start |
| 819 | ): GuardP<input, `${start}${string}`> => |
| 820 | when((value) => isString(value) && value.startsWith(start)); |
| 821 | |
| 822 | /** |
| 823 | * `P.string.endsWith(end)` is a pattern, matching **strings** ending with `end`. |
no test coverage detected
searching dependent graphs…