JSFiddle - React, Tailwind, and code Playground

by f0t0n

JavaScript

str = "ABCA ABCB ABCD BCD ABC";
search = "ABCD";
alert(str.indexOf(search) == -1 ? 'match' : 'does not match');