JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdn.jsdelivr.net/lodash/4.11.2/lodash.min.js"></script>
JavaScript
var text = 'this is some sample text';
var values = ['sample', 'anything'];
console.log(_.some(values, (el) => _.includes(text, el)));
var values = ['no', 'nope'];
console.log(_.some(values, (el) => _.includes(text, el)));