const obj = { firstName: 'Jean-Luc', lastName: 'Picard', age: 59 };
// { firstName: 'Jean-Luc', lastName: 'Picard' }
Object.keys(obj).
filter((key) => key.includes('Name')).
reduce((cur, key) => { return Object.assign(cur, { [key]: obj[key] })}, {});