![]() |
VOOZH | about |
The dd() method in collect.js is used to log the output of the function and stop the further execution thus exiting the current process.
Installation:
npm install collect.js
<script src="https://cdnjs.com/libraries/collect.js"></script>
Syntax:
collect.dd()
Parameters: It does not accept any parameters.
Return Value: It does not return anything.
Example 1:
Output:
👁 ImageExample 2: Code after dd() function will not be executed.