I'm a developer and consultant focused primarily on the web, specializing in React, Ruby on Rails, and PostgreSQL. Newsletter: https://crafty-builder-6996.ck.page/e169c61186
I've picked up the habit from my current team to use void 0. My understanding is that it is supposed to be safer. They are essentially interchangeable in modern browsers. I agree it'd be clearer to use undefined.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A good, to-the-point article. 👐
Question: why use
void 0
instead ofundefined
, which has clear meaning?I've picked up the habit from my current team to use
void 0
. My understanding is that it is supposed to be safer. They are essentially interchangeable in modern browsers. I agree it'd be clearer to useundefined
.