isScript method
The isScript() method of the TrustedTypePolicyFactory interface
returns true if it is passed a valid TrustedScript object.
Note: The purpose of the functions
isScript(), TrustedTypePolicyFactory.isHTML, and TrustedTypePolicyFactory.isScriptURL is to check if the object is a valid TrustedType object, created by a configured policy.
Implementation
external bool isScript(JSAny? value);