supports static method

bool supports(
  1. String type
)

The supports() static method of the HTMLScriptElement interface provides a simple and consistent method to feature-detect what types of scripts are supported by the user agent.

The method is expected to return true for classic and module scripts, which are supported by most modern browsers.

Implementation

external static bool supports(String type);