Skip to content

Function: strWordCount() ​

strWordCount(str, characters?): number

Defined in: src/formatters.ts:235

Count the number of words in a string.

Parameters ​

str ​

string

The string to count words in

characters? ​

string

Optional characters to treat as word boundaries

Returns ​

number

The word count

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.