MCPcopy Create free account
hub / github.com/cure53/DOMPurify / isRegexOrFunction

Function isRegexOrFunction

src/purify.ts:702–706  ·  view source on GitHub ↗
(
    testValue: unknown
  )

Source from the content-addressed store, hash-verified

700 const formElement = document.createElement('form');
701
702 const isRegexOrFunction = function (
703 testValue: unknown
704 ): testValue is Function | RegExp {
705 return testValue instanceof RegExp || testValue instanceof Function;
706 };
707
708 /**
709 * _parseConfig

Callers 1

_parseConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected