JSFiddle - React, Tailwind, and code Playground

by wirey00

JavaScript

var values = ['Custom 98','test Custom 97','Custom Test 96','tst 95','tet 95'];
var x = $.grep(values,function(val,ind){
   return /^Custom/.test(val);
});
$('body').html('x = ' + x + '<br/> has Custom == ' + x.length);