Skip to content

guards.Function.notEmptyStr

github-actions[bot] edited this page Jun 8, 2026 · 2 revisions

@zenstone/ts-utils / guards / notEmptyStr

Function: notEmptyStr()

notEmptyStr(val): val is string

Defined in: src/guards/index.ts:23

检查 val 是否为非空字符串(含 infer)

Parameters

val

unknown

Returns

val is string

Clone this wiki locally