Files
30-seconds-of-code/test/distance/distance.js
2018-01-09 06:09:49 -05:00

1 line
66 B
JavaScript

module.exports = (x0, y0, x1, y1) => Math.hypot(x1 - x0, y1 - y0);