DEV Community

Discussion on: Practical Ways to Write Better JavaScript

Collapse
 
bblackwo profile image
Benjamin B

Array.prototype.includes() and String.prototype.includes() are also some great new JavaScript features! :) I hate seeing indexOf('something') >= 0 but people still use it all the time!