import { isDefined } from "https://dotland.deno.dev/x/scaffold@0.3.0/src/deps/npm.ts";
Check whether a value is defined, meaning it is not undefined
.
This can be useful as a type guard, as for example, [1, undefined].filter(Boolean)
does not always type-guard correctly.
Parameters
value: T | undefined