Initial commit
This commit is contained in:
20
node_modules/react-redux/lib/utils/verifyPlainObject.js
generated
vendored
Normal file
20
node_modules/react-redux/lib/utils/verifyPlainObject.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = verifyPlainObject;
|
||||
|
||||
var _isPlainObject = require('lodash/isPlainObject');
|
||||
|
||||
var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
|
||||
|
||||
var _warning = require('./warning');
|
||||
|
||||
var _warning2 = _interopRequireDefault(_warning);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function verifyPlainObject(value, displayName, methodName) {
|
||||
if (!(0, _isPlainObject2.default)(value)) {
|
||||
(0, _warning2.default)(methodName + '() in ' + displayName + ' must return a plain object. Instead received ' + value + '.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user