![]() |
VOOZH | about |
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