JSFiddle - React, Tailwind, and code Playground

by Hugo Carneiro

JavaScript

var term = ' Corporate - Antitrust';
var value = 'corporate - antitrust';
value = value.toLowerCase();

console.log( term.toLowerCase().indexOf(value) > -1 )