How to find if an array contains a specific string in JavaScript/jQuery?

Published: 05 March 2023
on channel: Code Samples
170
0

#short
#javascript
#jquery
#arrays
#string
Can someone tell me how to detect if "specialword" appears in an array? Example:
categories: [
"specialword"
"word1"
"word2"
]
not supported in IE 9: https://developer.mozilla.org/en-US/d...


Watch video How to find if an array contains a specific string in JavaScript/jQuery? online without registration, duration hours minute second in high quality. This video was added by user Code Samples 05 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 170 once and liked it 0 people.