function isApiImageUrl
isApiImageUrl(url: string): boolean

Checks whether url is an image the API serves, its own or one it proxies, which all take ?w= and answer a scaled-down copy. Another site's image, loaded from its own host, doesn't.

Parameters

url: string

Return Type

boolean

Usage

import { isApiImageUrl } from "src/utils/shared/urls.ts";