Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
contour.points = sfntContour.map(sfntPoint => {
const point = new sfnt.Point()
point.x = sfntPoint.x
point.y = sfntPoint.y
point.onCurve = sfntPoint.onCurve
return point
})