-
Notifications
You must be signed in to change notification settings - Fork 828
Open
Labels
status: needs triageIssues which needs to be reproduced to be verified report.Issues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.Issues describing a broken feature.
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`);
}
Metadata
Metadata
Assignees
Labels
status: needs triageIssues which needs to be reproduced to be verified report.Issues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.Issues describing a broken feature.