JSFiddle - React, Tailwind, and code Playground
JavaScript
var str = 'Hello everybody, my name is Aurelio De Rosa.';
var result = str.contains('Aurelio');
// prints "true"
console.log(result);
result = str.contains('Hello', 10);
// prints "false"
console.log(result);