• Checks whether manga entry exists on user's AniList list (has valid id).

    Parameters

    • OptionalmediaListEntry: null | { id?: number }

      The media list entry object (may be null/undefined).

    Returns boolean

    True if entry has an id; false otherwise.

    export function isOnUserList(mediaListEntry?: { id?: number } | null): boolean {
    return Boolean(mediaListEntry?.id);
    }