You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
294 B
9 lines
294 B
/* Code from github.com/erikras/redux-form by Erik Rasmussen */
|
|
import { Iterable } from 'immutable';
|
|
import plainGetIn from '../plain/getIn';
|
|
|
|
var getIn = function getIn(state, path) {
|
|
return Iterable.isIterable(state) ? state.getIn(path) : plainGetIn(state, path);
|
|
};
|
|
|
|
export default getIn; |