jsdataframe.js
function subsetArray(array, intIdx) {
  var result = allocArray(intIdx.length);
  for (var i = 0; i < intIdx.length; i++) {
    result[i] = array[intIdx[i]];
  }
  return result;
}
function subsetArray(array, intIdx) {
  var result = allocArray(intIdx.length);
  for (var i = 0; i < intIdx.length; i++) {
    result[i] = array[intIdx[i]];
  }
  return result;
}
function subsetArray ( array , intIdx ) { var result = allocArray ( intIdx . length ) ; for ( var i = 0 ; i < intIdx . length ; i ++ ) { result [ i ] = array [ intIdx [ i ] ] ; } return result ; }
Uses the integer indexes in 'intIdx' to subset 'array', returning the results.  All indices in 'intIdx' are assumed to be in bounds.
Uses the integer indexes in intIdx to subset array returning the results . All indices in intIdx are assumed to be in bounds .