Files
30-seconds-of-code/node_modules/react-redux/es/utils/verifyPlainObject.js
2019-08-20 15:52:05 +02:00

7 lines
305 B
JavaScript

import isPlainObject from './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 + ".");
}
}