SVGLengthList: getItem() method
The getItem()
method of the SVGLengthList
interface returns the specified item from the list. The returned item is the item itself and not a copy. Any changes made to the item are immediately reflected in the list. The first item is indexed 0.
Syntax
js
getItem(index)
Parameters
index
-
A non-negative integer that specifies the index of the item to retrieve.
Return value
The SVGLength
at the specified index in the list.
Exceptions
DOMException
IndexSizeError
-
Thrown when the index is out of bounds for the list.
Examples
See SVGLengthList
for a complete example.
Specifications
No specification found
No specification data found for api.SVGLengthList.getItem
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
Browser compatibility
BCD tables only load in the browser