Skip to main content
Module

x/polkadot/phishing/mod.ts>checkHost

Package publishing for deno.land/x/polkadot
Go to Latest
function checkHost
Deprecated
Deprecated

While not due for removal, it is suggested to rather use the checkIfDenied function (which is more optimal overall)

import { checkHost } from "https://deno.land/x/polkadot@0.2.40/phishing/mod.ts";

Checks a host to see if it appears in the provided list

Parameters

list: string[]
host: string

Returns

boolean