function lassoPath(lasso) {
    return array$2(lasso).reduce((svg, _ref, i) => {
      let [x, y] = _ref;
      return svg += i == 0 ? `M ${x},${y} ` : i === lasso.length - 1 ? ' Z' : `L ${x},${y} `;
    }, '');
  }
Generates a svg path command which draws a lasso

@param {*} lasso the lasso in pixel space in the form [[x,y], [x,y], ...]
@returns the svg path command that draws the lasso