isScriptURL method

bool isScriptURL(
  1. JSAny? value
)

The isScriptURL() method of the TrustedTypePolicyFactory interface returns true if it is passed a valid TrustedScriptURL object.

Note: The purpose of the functions isScriptURL(), TrustedTypePolicyFactory.isHTML, and TrustedTypePolicyFactory.isScript is to check if the object is a valid TrustedType object, created by a configured policy.

Implementation

external bool isScriptURL(JSAny? value);