A
A
Alexander2020-07-13 16:56:59
JavaScript
Alexander, 2020-07-13 16:56:59

How to check an array element for the presence of a certain character?

I need to check an array element for the presence of a specific character (e.g. @), how can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tigran Abrahamyan, 2020-07-13
@Alexandre888

arr.includes('@');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question