• Creates the list of characters of string.

    Parameters

    • str: string

      The source string.

    Returns List<string>

    The list of characters.

    Examples

    import { fromString, toArray } from "./list.ts";
    import { assertEquals } from "../deps.ts";

    assertEquals(toArray(fromString("hoge")), ["h", "o", "g", "e"]);
    assertEquals(toArray(fromString("")), []);

Generated using TypeDoc