Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/core/utils/generator.ts>isGenerator

🔥 Static site generator for Deno 🦕
Very Popular
Latest
function isGenerator
import { isGenerator } from "https://deno.land/x/lume@v2.4.1/core/utils/generator.ts";

Check if the content variable is a generator.

Parameters

content: unknown

Returns

content is GeneratorFunction | AsyncGeneratorFunction