Make an assertion that actual is not null or undefined. If not then throw.
Optional
24.7.0
import { assertExists } from "assert";assertExists("something"); // Doesn't throwassertExists(undefined); // Throws Copy
import { assertExists } from "assert";assertExists("something"); // Doesn't throwassertExists(undefined); // Throws
Make an assertion that actual is not null or undefined. If not then throw.