Checks if a manga is in one-shot format. One-shots have format "ONE_SHOT", single chapter, or single volume.
The manga data to check.
True if the manga is a one-shot.
export function isOneShot(manga: AniListManga): boolean { return ( manga.format === "ONE_SHOT" || manga.chapters === 1 || (manga.chapters === undefined && manga.volumes === 1) );} Copy
export function isOneShot(manga: AniListManga): boolean { return ( manga.format === "ONE_SHOT" || manga.chapters === 1 || (manga.chapters === undefined && manga.volumes === 1) );}
Checks if a manga is in one-shot format. One-shots have format "ONE_SHOT", single chapter, or single volume.