A CSSRuleList represents an ordered collection of read-only CSSRule objects.
CSSRuleList
MDN Reference
The length property of the CSSRuleList interface returns the number of CSSRule objects in the list.
length
The item() method of the CSSRuleList interface returns the CSSRule object at the specified index or null if the specified index doesn't exist.
item()
index
null