Back to Content

SVGLengthList: length property

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

latest555 B
Original Source

{{APIRef("SVG")}}

The length property of the {{domxref("SVGLengthList")}} interface returns the number of items in the list. It is an alias of {{domxref("SVGLengthList.numberOfItems", "numberOfItems")}} to make SVG lists more array-like.

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}}