How to return more than one row in treeToGridElement

Is it possible for treeToGridElement to return more than one Row at a time?

Something like this

var nrows = this.getColumnsNum();

var row = new Array(nrows);

 Fillrow(row);

 return [row,[]];

This only seem to produce a blank row, row is not added, unless I return row by itself.