Javascript case insensitive string comparison
var name1 = "Taylor Johnson";
var name2 ="taylor johnson";
//convert to lowercase for case insensitive comparison
if(name1.toLowerCase() === name2.toLowerCase()){
//names are the same
}
Also in JavaScript:
- javascript includes method
- create overlay js
- push object into array javascript
- Javascript append item to array
- js numbers
- js set value in object only if defined
- jquery get all paragraphs
- js settimeout mdn
- js convert order to char
- javascript check if elements of one array are in another
- electron specify minimum size
- exponent in javascript
- how to rename zip file nodejs
- nodejs include json file
- discord.js get all members with role
- jquery append to table
- print all the nested json key value pair c#
- nodejs response is html not json data
- node.js wikipedia api call
- angular one way property binding
- js detect if content editable div is empty
- short string javascript
- make welcome message and channel discord.js
- data submit notification in javascript