I want to find multiple values in an array. When searching, I want to be able to use something like a LIKE statement from SQL.
arr = ['end', 'start_date', 'hello', 'end_dt', 'pub_date']
When I do:
let el = arr.find(a => a.includes('date') || a.includes('dt'));
Right now it only returns the first value it finds, start_date
I need it to return:
start_date
end_dt
pub_date
How do I do that?
filterinstead offind