5 lines
173 B
TypeScript
5 lines
173 B
TypeScript
export const isRemoteImageUrl = (value: string | null | undefined) => {
|
|
if (!value) return false;
|
|
return value.startsWith('http://') || value.startsWith('https://');
|
|
};
|