UNPKG
react-dip
Version:
latest (0.0.3-beta.10)
0.0.3
0.0.3-beta.10
0.0.3-beta.9
0.0.3-beta.8
0.0.3-beta.7
0.0.3-beta.6
0.0.3-beta.5
0.0.3-beta.4
0.0.3-beta.2
0.0.3-beta.1
0.0.3-4
0.0.3-3
0.0.3-2
0.0.3-1
0.0.2
0.0.1
Simple & declarative transition animations for React
github.com/mdugue/react-dip
mdugue/react-dip
react-dip
/
src
/
util.js
13 lines
(11 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
// @flow
export
function
pick
(
o: {}, fields: string[]
) {
return
fields.
reduce
(
(
a, x
) =>
{
if
(o.
hasOwnProperty
(x)) a[x] = o[x]
return
a }, {}) }
// TODO Implement if needed
export
function
omit
(
o: {}
) {
return
o }