Skip to Content
APIUtilsFunction: isBasicWithIcon()

Function: isBasicWithIcon()

function isBasicWithIcon(category): category is BasicWithIcon

Checks if the category carries a Font Awesome icon.

Parameters

category

BasicCategory

The category to inspect.

Returns

category is BasicWithIcon

true if the category exposes a non-empty icon name, narrowing it to BasicWithIcon.

Last updated on