DEV Community

loading...

Code Snippets | indexOf() vs includes()

comscience profile image kapeel kokane ・1 min read

In today's code snippet,

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

Liquid error: internal

Cheers!

Discussion (0)

Forem Open with the Forem app