mirror of
https://github.com/github/codeql.git
synced 2026-02-02 16:23:02 +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);
|
|
}
|