text →
is-currency-symbol() → boolean

Returns true when the input contains exactly one Unicode currency symbol. Returns false for null, empty, blank, and all other text.

Parameters

This predicate has no parameters.

Behavior

Recognizes the Unicode CurrencySymbol (Sc) category, including symbols outside the Currency Symbols block and supplementary Unicode code points. Whitespace is not trimmed; currency codes such as USD are not symbols.

Examples

"$" | is-currency-symbol  #true
"USD" | is-currency-symbol  #false

Kind: Predicate
Scope: text
Aliases: None


This site uses Just the Docs, a documentation theme for Jekyll.