PageSourceSearch

https://www.3si.at/_resources/app/themes/3si/lib/circle-to-polygon/input-validation/validateRadius.js

js 3si.at collected 2026-10-05 02:49:11 UTC 295 bytes, 9 lines download raw bytes

1export default function validateRadius(radius) {
2  if (typeof radius !== "number") {
3    throw new Error(`ERROR! Radius has to be a positive number but was: ${typeof radius}`);
4  }
5
6  if (radius <= 0) {
7    throw new Error(`ERROR! Radius has to be a positive number but was: ${radius}`);
8  }
9};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.