How do you check if a string is in another string? (JavaScript)

Опубликовано: 26 Октябрь 2024
на канале: JS Nuggets
587
6

Learn how to check if one string (substring) is contained in another string in JavaScript.

Code:
🔗 http://codepen.io/beaucarnes/pen/VPLw...

Other resources on topic:
🔗 http://stackoverflow.com/questions/17...
🔗 http://www.w3schools.com/jsref/jsref_...

JS Nuggets: Brisk JavaScript training and tips