toObject()

Returns an object with each property name and value corresponding to the entries in this collection.

For collections that are not maps, the generated property names correspond to each index.

On collections

Usage

  • toObject()

Related

  • toArray()

    Returns an array of each value in this collection.