JSFiddle - React, Tailwind, and code Playground

by master1991

JavaScript

const str = 'We love $ too and its all about /';

const char1 = '/';
const char2 = '$';

console.log(str.includes(char1)); // true

console.log(str.includes(char2)); // false