Skip to main content
Module

x/polkadot/mod.ts>phishing.checkHost

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

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

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

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

Parameters

list: string[]
host: string

Returns

boolean