operator [] method

SpeechGrammar operator [] (
  1. int index
)

Implementation

SpeechGrammar operator [](int index) {
  if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
    throw new RangeError.index(index, this);
  return JS("SpeechGrammar", "#[#]", this, index);
}