2 ms·
Or someString.contains(searchTerm) - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes https://developer.mozilla.
by Cthulhu_ 12y ago
Or someString.contains(searchTerm) - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- nmjohn 12y ago> This is an experimental technology, part of the Harmony (ECMAScript 6) proposal. It only works in firefox and if I remember correctly, it is no longer part of the latest ECMA 6 spec.