Skip to main content
Module

std/node/assert.ts>match

Deno standard library
Go to Latest
function match
Re-export
import { match } from "https://deno.land/std@0.78.0/node/assert.ts";

Make an assertion that actual match RegExp expected. If not then thrown

Parameters

actual: string
expected: RegExp
optional
msg: string