Case-sensitive 'contains'


/ Published in: JavaScript
Save to your folder(s)

A simple Javascript function to determine if one string contains another.

Usage:

if (myString.contains("anything") {
do something…
}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.