src/vendor/leemon.js
function trim(x, k) {
  var i, y;
  for (i=x.length; i>0 && !x[i-1]; i--);
  y=new Array(i+k);
  copy_(y, x);
  return y;
}
function trim(x, k) {
  var i, y;
  for (i=x.length; i>0 && !x[i-1]; i--);
  y=new Array(i+k);
  copy_(y, x);
  return y;
}
function trim ( x , k ) { var i , y ; for ( i = x . length ; i > 0 && ! x [ i - 1 ] ; i -- ) ; y = new Array ( i + k ) ; copy_ ( y , x ) ; return y ; }
return x with exactly k leading zero elements
return x with exactly k leading zero elements