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