mirror of
https://github.com/github/codeql.git
synced 2026-01-02 17:26:44 +01:00
5 lines
96 B
JavaScript
5 lines
96 B
JavaScript
function distanceFromOrigin(point) {
|
|
var [x, y] = point;
|
|
return Math.sqrt(x*x + y*y);
|
|
}
|