VOOZH about

URL: https://www.geeksforgeeks.org/javascript/collect-js-dump-method/

⇱ Collect.js dump() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Collect.js dump() Method

Last Updated : 29 Jul, 2020

The dump() method in collect.js is used to print the data at particular moment and then continue further executing the code.

Syntax:

collect.dump()

Parameters: It does not accept any parameters.

Return Value: It does not return any value.

Example 1:

Output:

Collection { items: [ 'a', 'b', 'c' ] }

Example 2:

Output:

Collection { items: [ 'a', 'b', 'c', 'd', 'e' ] }
Collection { items: [ 'c', 'd', 'e' ] }
Reference: https://collect.js.org/api/dump.html
Comment
Article Tags: