Title: How to Check if a String Contains One of Multiple Values in JavaScript - Webtips
Open Graph Title: How to Check if a String Contains One of Multiple Values in JavaScript
X Title: How to Check if a String Contains One of Multiple Values in JavaScript
Description: To match a variable in JavaScript against multiple possible values, we can either use some in combination with includes in the following way...
Open Graph Description: To match a variable in JavaScript against multiple possible values, we can either use some in combination with includes in the following way...
X Description: To match a variable in JavaScript against multiple possible values, we can either use some in combination with includes in the following way...
Opengraph URL: https://webtips.dev/webtips/javascript/string-contains-multiple-values-in-javascript
X: @WebtipsHQ
Domain: webtips.dev
{ "@context": "https://schema.org", "@type": "Article", "url": "https://webtips.dev/webtips/javascript/string-contains-multiple-values-in-javascript", "name": "How to Check if a String Contains One of Multiple Values in JavaScript", "headline": "How to Check if a String Contains One of Multiple Values in JavaScript", "description": "To match a variable in JavaScript against multiple possible values, we can either use some in combination with includes in the following way...", "dateCreated": "2022-01-12", "datePublished": "2022-01-12", "dateModified": "2022-01-12", "keywords": [ "Frontend","JSTip","Webtips","JS" ], "author": { "@type": "Person", "name": "Ferenc Almasi", "url": "https://webtips.dev/authors/ferenc", "image": "https://webtips.dev/assets/img/authors/ferenc.png" }, "publisher": { "@type": "Organization", "name": "Webtips", "url": "https://webtips.dev", "logo": { "@type": "ImageObject", "url": "https://webtips.dev/assets/img/logo-light.svg" } }, "mainEntityOfPage": { "@type": "WebPage", "url": "https://webtips.dev/webtips/javascript/string-contains-multiple-values-in-javascript" }, "image": { "@type": "ImageObject", "url": "/assets/img/content/2022/01/javascript-contains-multiple-strings.png", "width": "1000", "height": "590" } }
| theme-color | #1D1A1D |
| author | Ferenc Almasi |
| category | JS |
| og:type | website |
| og:image | /assets/img/content/2022/01/javascript-contains-multiple-strings.png |
| twitter:creator | @WebtipsHQ |
| twitter:card | summary_large_image |
| twitter:image:src | /assets/img/content/2022/01/javascript-contains-multiple-strings.png |
Links:
Viewport: width=device-width,initial-scale=1,shrink-to-fit=no