Gazebo_simulation-Frontend/node_modules/react-redux/lib/utils/verifyPlainObject.js

16 lines
552 B
JavaScript
Raw Normal View History

2020-12-21 11:29:31 -04:00
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = verifyPlainObject;
var _isPlainObject = _interopRequireDefault(require("./isPlainObject"));
var _warning = _interopRequireDefault(require("./warning"));
function verifyPlainObject(value, displayName, methodName) {
if (!(0, _isPlainObject["default"])(value)) {
(0, _warning["default"])(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
}
}