platform-bible-utils

    Function substring

    • This function mirrors the substring function from the JavaScript Standard String object. It handles Unicode code points instead of UTF-16 character codes.

      Returns a substring by providing start and end position.

      Parameters

      • string: string

        String to be divided

      • begin: number

        Start position

      • end: number = ...

        End position. Default is End of string

      Returns string

      Substring from starting string

    MMNEPVFCICPMFPCPTTAAATR