commit
09db684a7d
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
To make the search case-insensitive, let's bring the string to lower case and then search:
|
To make the search case-insensitive, let's bring the string to lower case and then search:
|
||||||
|
|
||||||
```js run
|
```js run demo
|
||||||
function checkSpam(str) {
|
function checkSpam(str) {
|
||||||
let lowerStr = str.toLowerCase();
|
let lowerStr = str.toLowerCase();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue