platform-bible-utils
    Preparing search index...

    Function toArray

    • Converts a string to an array of its grapheme clusters. Mirrors spreading a native string, except that native yields code points rather than grapheme clusters. Clusters are UAX #29; see the module note above for the two consequences worth knowing.

      Parameters

      • string: string

        String to convert to an array

      Returns string[]

      An array of the string's grapheme clusters