import { assert } from "https://deno.land/x/polkadot@0.2.17/util/assert.ts";
Examples
const { assert } from '@polkadot/util';
assert(true, 'True should be true'); // passes
assert(false, 'False should not be true'); // Error thrown
assert(false, () => 'message'); // Error with 'message'