import objectAssign from 'ponyfills/objectAssign' ; function mapObject ( instance , predicate ) { return Object . keys ( instance ) . reduce ( ( obj , itemKey ) => { const value = predicate ( instance [ itemKey ] , itemKey , obj ) ; if ( value !== null ) { return objectAssign ( { } , obj , value ) ; } return obj ; } , { } ) ; } export { mapObject as default , } ;