Function ayahStringSplitter

  • Turns String of type "x:y" or "x:y1-y2" to array [x,y] or [x,[y1,y2]] respectively

    Parameters

    • str: string

      String of type "x:y" or "x:y1-y2"

    Returns SurahAyahSegment

    array [x,y] or [x,[y1,y2]] respectively