JavaScript Tip 💡
Use the spread operator to create shallow copies of objects and arrays.
It's way cleaner than iterating and manually copying over.
#Javascripttip
Use the spread operator to create shallow copies of objects and arrays.
It's way cleaner than iterating and manually copying over.
#Javascripttip
JavaScript Tip 💡
Use console.trace instead of console.log.
It will show you the complete call stack when debugging.
#Javascripttip
Use console.trace instead of console.log.
It will show you the complete call stack when debugging.
#Javascripttip
Forwarded from Learn JavaScript™