Skip to Content
APIUtilsFunction: isBasicWithImageUrl()

Function: isBasicWithImageUrl()

function isBasicWithImageUrl(category): category is BasicWithImageUrl

Checks if the category carries an image URL.

Parameters

category

BasicCategory

The category to inspect.

Returns

category is BasicWithImageUrl

true if the category exposes a non-empty imageUrl, narrowing it to BasicWithImageUrl.

Last updated on