Back to Content

SpeechGrammarList: item() method

files/en-us/web/api/speechgrammarlist/item/index.md

latest579 B
Original Source

{{APIRef("Web Speech API")}}{{deprecated_header}}

The item getter of the {{domxref("SpeechGrammarList")}} interface is a standard getter — it allows individual {{domxref("SpeechGrammar")}} objects to be retrieved from the SpeechGrammarList using array syntax.

Syntax

js-nolint
item(index)

Parameters

  • index
    • : Index of the item to retrieve.

Return value

A {{domxref("SpeechGrammar")}} object.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also