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

x/hyogwa/src/utils.ts>isGenerator

Natural 🌿 effect system that fits TypeScript
Latest
function isGenerator
import { isGenerator } from "https://deno.land/x/hyogwa@v0.1.0-rc.4/src/utils.ts";

A type guard checking whether given value is generator or not.

Parameters

value: unknown
  • Value to check

Returns

value is Generator

boolean