Skip to content

Commit

Permalink
removed reduce fn
Browse files Browse the repository at this point in the history
  • Loading branch information
gwyneplaine committed Oct 23, 2017
1 parent b7e876d commit e5b1c66
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/AsyncCreatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ import Select from './Select';
import Async from './Async';
import Creatable from './Creatable';

function reduce(obj, props = {}){
return Object.keys(obj)
.reduce((props, key) => {
const value = obj[key];
if (value !== undefined) props[key] = value;
return props;
}, props);
}

class AsyncCreatableSelect extends React.Component {

focus () {
Expand Down

0 comments on commit e5b1c66

Please sign in to comment.