Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 975 Bytes

File metadata and controls

57 lines (38 loc) · 975 Bytes
title short-title slug page-type status browser-compat
Summarizer: destroy() method
destroy()
Web/API/Summarizer/destroy
web-api-instance-method
experimental
api.Summarizer.destroy

{{APIRef("Summarizer API")}}{{SeeCompatTable}}

The destroy() method of the {{domxref("Summarizer")}} interface destroys the Summarizer instance it is called on.

Syntax

destroy()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Examples

Basic destroy() usage

const summarizer = await Summarizer.create({
  sharedContext:
    "A general summary to help a user decide if the text is worth reading",
  type: "tl;dr",
  length: "short",
});

// ...

summarizer.destroy();

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also