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

x/lume/core/utils.ts>isGenerator

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

Check if the content variable is a generator.

Parameters

content: unknown

Returns

content is GeneratorFunction | AsyncGeneratorFunction