Back to Content

SVGLengthList: numberOfItems property

files/en-us/web/api/svglengthlist/numberofitems/index.md

latest434 B
Original Source

{{APIRef("SVG")}}

The numberOfItems property of the {{domxref("SVGLengthList")}} interface returns the number of items in the list. {{domxref("SVGLengthList.length", "length")}} is an alias of it.

Value

A non-negative integer that represents the number of items in the list.

Examples

See {{domxref("SVGLengthList")}} for a complete example.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}