DEV Community

Discussion on: 8 neat Javascript tricks you didn't know in 4 minutes.

 
gilfewster profile image
Gil Fewster • Edited

I agree that relying on the coercion method alone is dangerous and liable to produce errors.

Which is why I said in my previous post that almost any method of type coercion is vulnerable to failure unless the data is carefully sanitised beforehand.

Some comments have been hidden by the post's author - find out more