time-to-botec/squiggle/node_modules/@stdlib/string/num-grapheme-clusters/docs/repl.txt

25 lines
357 B
Plaintext
Raw Normal View History

{{alias}}( str )
Returns the number of grapheme clusters in a string.
Parameters
----------
str: string
Input string.
Returns
-------
out: string
Number of grapheme clusters.
Examples
--------
> var out = {{alias}}( 'beep' )
4
> out = {{alias}}( '🌷' )
1
See Also
--------