amis-rpc-design/node_modules/react-redux/es/utils/verifyPlainObject.js

7 lines
295 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
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}.`);
}
}