UNPKG
@codingcatdev/react-gpt
Version:
latest (2.0.13)
2.0.13
A react display ad component using Google Publisher Tag
github.com/nfl/react-gpt
nfl/react-gpt
@codingcatdev/react-gpt
/
src
/
utils
/
filterProps.js
14 lines
(13 loc)
•
341 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
: {} } ); }