bloom-layout
Version:
layout components used in bloom packages
8 lines (7 loc) • 314 B
JavaScript
import isPlainObject from 'lodash-es/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 + '.');
}
}