Answers for "check a string in javascript"

16

string check javascript

if (typeof myVar === 'string') { /* code */ };
Posted by: Guest on July-23-2020
1

javascript string contains

var string = "foo",
var substring = "oo";

console.log(string.includes(substring));
Posted by: Guest on May-24-2020

Code answers related to "check a string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language