Determine if a point is in the current path

ctx.beginPath();

ctx.moveTo(240, 40);

ctx.arc(200, 200, 120, -Math.PI/6, 4*Math.PI/3, false);

ctx.fill();

var inside = ctx.isPointInPath(, );

The isPointInPath() function returns true.

The current path is the arc connected to a point drawn on the <canvas>. Use the isPointInPath() function to determine if the point (000, 000) is inside the path or not.