I am creating a custom function for Google Sheets using Google AppScript. I have a dataset that my user function summarizes and displays a summary on another sheet.
I can create my own algorithm for the summary and return this range:
Current

Now I understand that the Appcript function returns a two-dimensional array, but my problem is how to merge some cells using a Scriptcript application? Whenever there is a month? Like this:
Target

In the above example, the range that I will return from my user function will be
[
['January', ''],
['Project 1', '10 Hours'],
['Project 2', '20 Hours'],
['Project 3', '30 Hours'],
['Project 4', '40 Hours'],
['Project 5', '50 Hours'],
['February', ''],
['Project 1', '10 Hours'],
['Project 2', '20 Hours'],
['Project 3', '30 Hours'],
['Project 4', '40 Hours'],
['Project 5', '50 Hours']
]
So, how do I tell AppScript to tell GooglSheets that ['January', ''],both ['February', ''],are cells that need to be combined?
Excel , , .:)