param { Object } props param { Array } names example export function omit ( props , names ) { const next = { } ; const regex = new RegExp ( `^(${ names . join ( '|' ) })$` ) ; for ( const key in props ) { if ( regex . test ( key ) ) continue ; next [ key ] = props [ key ] ; } return next ; } param { Object } props param { Array } names example export function pick ( props , names ) { const next = { } ; const regex = new RegExp ( `^(${ names . join ( '|' ) })$` ) ; for ( const key in props ) { if ( ! regex . test ( key ) ) continue ; next [ key ] = props [ key ] ; } return next ; } param { Array } arr param { Object } config see https export function clean ( arr = [ ] , config = { } ) { return { shouldForwardProp : ( prop , defaultFn ) => ! arr . includes ( prop ) && defaultFn ( prop ) , ... config , } ; }