Skip to main content

Signature

path=null start=null
countWords(str: string): number

Parameters

  • str: string - The string to count words in.

Returns

number - The number of words in the string.

Source

Defined in string.ts:13