str/chars

将字符串分割成数组,每一项为一个字符。
Source:
Example
str.chars('abc')   // ['a', 'b', 'c']

str.chars(123)     // ['1', '2', '3']
Parameters:
Name Type Description
str String 需要分割的字符串
Returns:
分割后的数组
Type
Array