Files
RoboCommander/node_modules/react-redux/src/utils/verifyPlainObject.js

11 lines
311 B
JavaScript
Raw Normal View History

2026-04-05 16:14:49 -04:00
import isPlainObject from 'lodash/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}.`
)
}
}