Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const getPlaceUrl = (place) => {
if (!place) {
return "";
}
const {
placeId,
name
} = place;
const slug = urlSlug(name);
return `/places/${placeId}-${slug}`;
};