const omit = ( keys ) => ( props ) => { if ( ! keys ) { return props ; } const clonedProps = { ... props } ; keys . forEach ( ( key ) => { if ( key in clonedProps ) { delete clonedProps [ key ] ; } } ) ; return clonedProps ; } ; export default { omit , } ;