import reduce from './reduce'; import { ObjectType } from './types'; export default (obj: ObjectType, keys: string[]): ObjectType => { return reduce( obj, (r: ObjectType, curr: T, key: string) => { if (!keys.includes(key)) { r[key] = curr; } return r; }, {}, ); };