packages/travix-ui-kit/components/_helpers.js
function ejectOtherProps(props, propTypes) {
  const propTypesKeys = Object.keys(propTypes);
  return Object.keys(props)
    .filter(x => propTypesKeys.indexOf(x) === -1)
    .reduce((prev, item) => {
      return { ...prev, [item]: props[item] };
    }, {});
}
function ejectOtherProps(props, propTypes) {
  const propTypesKeys = Object.keys(propTypes);
  return Object.keys(props)
    .filter(x => propTypesKeys.indexOf(x) === -1)
    .reduce((prev, item) => {
      return { ...prev, [item]: props[item] };
    }, {});
}
function ejectOtherProps ( props , propTypes ) { const propTypesKeys = Object . keys ( propTypes ) ; return Object . keys ( props ) . filter ( x => propTypesKeys . indexOf ( x ) === - 1 ) . reduce ( ( prev , item ) => { return { ... prev , [ item ] : props [ item ] } ; } , { } ) ; }
Eject real custom users props from props

@method ejectOtherProps
@param {Object} props conponent props.
@param {Object} propTypes conponent props types.
@return {Object} custom props.
Eject real custom users props from props