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

x/froebel/mod.ts>isRejected

A strictly typed utility library.
Go to Latest
variable isRejected
import { isRejected } from "https://deno.land/x/froebel@v0.18.0/mod.ts";

Checks if result (returned from Promise.allSettled) is rejected.

type

(result: PromiseSettledResult<unknown>) => result is PromiseRejectedResult