Product Site

5.3.7.17. items

Returns the number of Bag items with index index. If you specify no index, this method returns the total number of items in the Bag.

Index equality is determined by using the == method of index.