import objectAssign from 'ponyfills/objectAssign' ; function removeFirstMatchFromObject ( instance , predicate ) { let notFound = true ; return Object . keys ( instance ) . reduce ( ( obj , itemKey ) => { if ( notFound && predicate ( instance [ itemKey ] , itemKey , obj ) ) { notFound = false ; return obj ; } return objectAssign ( { } , obj , { [ itemKey ] : instance [ itemKey ] , } ) ; } , { } ) ; } export { removeFirstMatchFromObject as default , } ;