time-to-botec/js/node_modules/@stdlib/string/split-grapheme-clusters/docs/repl.txt

25 lines
433 B
Plaintext
Raw Normal View History

{{alias}}( str )
Splits a string by its grapheme cluster breaks.
Parameters
----------
str: string
Input string.
Returns
-------
out: Array<string>
Array of grapheme clusters.
Examples
--------
> var out = {{alias}}( 'Hello!' )
[ 'H', 'e', 'l', 'l', 'o', '!' ]
> out = {{alias}}( '𠮷' )
[ '𠮷' ]
> out = {{alias}}( '' )
[]
See Also
--------