UNPKG

redux-persist-2

Version:

persist and rehydrate redux stores

11 lines (9 loc) 307 B
import { isPlainObject } from 'lodash' export default function isStatePlainEnough (a) { // isPlainObject + duck type not immutable if (!a) return false if (typeof a !== 'object') return false if (typeof a.mergeDeep === 'function') return false if (!isPlainObject(a)) return false return true }