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