GT2/GT2-iOS/node_modules/react-redux/es/utils/verifyPlainObject.js

8 lines
314 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
import isPlainObject from 'lodash-es/isPlainObject';
import warning from './warning';
export default function verifyPlainObject(value, displayName, methodName) {
if (!isPlainObject(value)) {
warning(methodName + '() in ' + displayName + ' must return a plain object. Instead received ' + value + '.');
}
}