Resource.isScript() method

Signature:

isScript(): this is ScriptResource;

Returns:

this is ScriptResource