isScriptURL method
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);