Knockout.js Extenders: Grouped

I wrote this extender to more easily handle outputting observable arrays in row+column layout. ¬†Typically, when running a simple foreach loop to display the content of an observable array you’re forced to include the row+column logic within the view itself or you have to write additional helper functions in the view model. ¬†I ran in to a situation where several different observable arrays needed to be displayed in row+column grids and rather than handling that functionality in the view or view model, I created this extension to generate a property of the observable array that is simply an additional observable array of the parent that has all the elements arranged in groups of whatever quantity that is specified.