function isErrorimport { isError } from "https://deno.land/x/isx@1.0.0-beta.18/mod.ts"; isError(value: unknown): value is ErrorWhether the value is Error or not. Parametersvalue: unknown Any value. import { isError } from "https://deno.land/x/isx@$VERSION/mod.ts" import { assertEquals } from "https://deno.land/std@$VERSION/testing/asserts.ts" assertEquals(isError(Error()), true) assertEquals(isError(new SyntaxError()), false) Returnsvalue is Error