mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/RoboCommander.git
synced 2026-06-15 12:46:04 +00:00
11 lines
311 B
JavaScript
11 lines
311 B
JavaScript
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}.`
|
|
)
|
|
}
|
|
}
|