Skip to content
Advertisement

How to get every element in an array in an if statement js [closed]

So I’m trying to check names through an array and I don’t want to have to use

JavaScript

Advertisement

Answer

depend on what you are trying to do u can use forEach or map

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement