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.

16 lines
431 B

import SeamlessImmutable from 'seamless-immutable';
import getIn from '../plain/getIn';
var Immutable = SeamlessImmutable.static;
var structure = {
fromJS: function fromJS(value) {
return Immutable.from(value);
},
getIn: getIn,
merge: function merge(state, payload) {
return Immutable.merge(state, payload);
},
toJS: function toJS(value) {
return Immutable.asMutable(value);
}
};
export default structure;