combinations.js
function indicesToItems(target, items, indices, r) {
  for (var i = 0; i < r; i++)
    target[i] = items[indices[i]];
}
function indicesToItems(target, items, indices, r) {
  for (var i = 0; i < r; i++)
    target[i] = items[indices[i]];
}
function indicesToItems ( target , items , indices , r ) { for ( var i = 0 ; i < r ; i ++ ) target [ i ] = items [ indices [ i ] ] ; }
Helper mapping indices to items.
Helper mapping indices to items .