Skip to content

Like base::nzchar(), but for ANSI strings

Usage

ansi_nzchar(x, ...)

Arguments

x

Charcater vector. Other objects are coarced using base::as.character().

...

Passed to base::nzchar().

Examples

ansi_nzchar("")
#> [1] FALSE
ansi_nzchar(col_red(""))
#> [1] FALSE