MCPcopy Index your code
hub / github.com/darkreader/darkreader / isValidLoc

Function isValidLoc

src/utils/validation.ts:175–175  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

173 }
174 const locValidator = createValidator();
175 const isValidLoc = (x: any) => x === null || isNumber(x);
176 locValidator.validateProperty(location, 'latitude', isValidLoc, location);
177 locValidator.validateProperty(location, 'longitude', isValidLoc, location);
178 return locValidator.errors.length === 0;

Callers

nothing calls this directly

Calls 1

isNumberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…