isNonEmpty
isNonEmpty(
s):s is NonEmptyString
Defined in: src/core/types.ts:75
Type guard to check if a string is non-empty.
Parameters
s
string
The string to check
Returns
s is NonEmptyString
true if the string is non-empty
Example
const input = getUserInput();if (isNonEmpty(input)) { await repo.branch.create(input); // input is NonEmptyString here}