toJSON
Returns a JSON-serializable array representing the collection. This encoding is not memory-efficient, and should generally be used for debugging and testing.
console.table(collection.toJSON());Content copied to clipboard
Return
List of JSON-serializable objects, one for each primitive in the collection.