src/js/db/table.js
// helper for serveral functions maps function on an array
helper for serveral functions maps function on an array
helper for serveral functions maps function on an array
function amap(Arr,Fun){
  var i, R = [];
  for (i=0;i<Arr.length;i++)
    R[i] = Fun(Arr[i],i);
  return R;
}
function amap ( Arr , Fun ) { var i , R = [ ] ; for ( i = 0 ; i < Arr . length ; i ++ ) R [ i ] = Fun ( Arr [ i ] , i ) ; return R ; }
helper for serveral functions maps function on an array
helper for serveral functions maps function on an array