Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
data = data.filter((m) => {
if (!m.person.name) {
if (window.Bugsnag) {
Bugsnag.notifyException(new Error('!m.person.name'), m.person);
}
LogRocket.warn('person.name', m.person);
return true;
}
return m.person.name.toLowerCase().indexOf(this.filter.toLowerCase()) > -1;
});