lib/base/array.js
function partition(array, partitionSize) {
    partitionSize = partitionSize || array.length;
    var ret = [];
    for (var i = 0, l = array.length; i < l; i += partitionSize) {
        ret.push(array.slice(i, i + partitionSize));
    }
    return ret;
}
function partition(array, partitionSize) {
    partitionSize = partitionSize || array.length;
    var ret = [];
    for (var i = 0, l = array.length; i < l; i += partitionSize) {
        ret.push(array.slice(i, i + partitionSize));
    }
    return ret;
}
function partition ( array , partitionSize ) { partitionSize = partitionSize || array . length ; var ret = [ ] ; for ( var i = 0 , l = array . length ; i < l ; i += partitionSize ) { ret . push ( array . slice ( i , i + partitionSize ) ) ; } return ret ; }
Paritition an array.

```
var arr = [1,2,3,4,5];

comb.array.partition(arr, 1); //[[1], [2], [3], [4], [5]]
comb.array.partition(arr, 2); //[[1,2], [3,4], [5]]
comb.array.partition(arr, 3); //[[1,2,3], [4,5]]

comb.array.partition(arr); //[[1, 2, 3, 4, 5]]
comb.array.partition(arr, 0); //[[1, 2, 3, 4, 5]]



```

@param array
@param partitionSize
@returns {Array}

@static
@memberOf comb.array
Paritition an array .