Debugging with NodeJS

I’ve found debugging to be tricky with Node, until today. Running with the `–inspect` flag is pretty cool, mind you it’s “experimental” and “may be disconued at any time” !

Recap: `$ node –inspect yourFile.js`

Then node will give you a CHROME-ONLY url to debug your script. I highly recommed enabling the auto-break feature in the inspector tools. If you’re not familiar that, look at pausing on exceptions in chrome.

Published
Categorized as news

ES6 Some vs Every

I learned a neat trick today. You can’t break a javascript forEach loop but you can break a some and an every but there are specific rules.

`some` will only break when a value equivalent to true is returned`every` will only break when a vlue equivalent to false is returned

Published
Categorized as news