time-to-botec/squiggle/node_modules/@stdlib/string/split-grapheme-clusters/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

25 lines
433 B
Plaintext

{{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
--------