UNPKG

@flightstats/react-gpt

Version:

A react display ad component using Google Publisher Tag

14 lines (13 loc) 341 B
export default function filterProps(propKeys, props, nextProps) { return propKeys.reduce( (filtered, key) => { filtered.props[key] = props[key]; filtered.nextProps[key] = nextProps[key]; return filtered; }, { props: {}, nextProps: {} } ); }