DEV Community

kapeel kokane
kapeel kokane

Posted on

Code Snippets | indexOf() vs includes()

In today's code snippet,

Do you really need the indexOf() method or are you actually looking for includes()?

Cheers!

Top comments (0)