• Returns a string array that represents the given string

    Parameters

    • Optionaltext: null | string

      the source string to inspect

    Returns string[] | undefined

    a string array that represents the given string

    toChars(undefined);    // undefined
    toChars('foobar'); // ['f', 'o', 'o', 'b', 'a', 'r']