data-provider-temporary
Version:
Library that helps with server-to-client synchronization of data
11 lines (9 loc) • 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}.`
)
}
}