If you mandate that the row constructor always returns an object (and I currently can't think of a case where it wouldn't), you'd be safe implementing this as 
```js
return new createRow(row)
```

Then you could pass a reference to a constructor to the table creation method instead of a full function.