Open
Description
Description
Both functions isLatitude and isLatitude should support number as input type like the documentation mentions it.
Checks if the string or number is a valid latitude coordinate.
Actual behavior
export function isLatitude(value: string): boolean {
return (typeof value === 'number' || typeof value === 'string') && isLatLong(`${value},0`);
}
Expected behavior
export function isLatitude(value: number | string): boolean {
return (typeof value === 'number' || typeof value === 'string') && isLatLong(`${value},0`);
}