MCPcopy
hub / github.com/reduxjs/react-redux / verifyPlainObject

Function verifyPlainObject

src/utils/verifyPlainObject.ts:4–14  ·  view source on GitHub ↗
(
  value: unknown,
  displayName: string,
  methodName: string,
)

Source from the content-addressed store, hash-verified

2import warning from './warning'
3
4export default function verifyPlainObject(
5 value: unknown,
6 displayName: string,
7 methodName: string,
8) {
9 if (!isPlainObject(value)) {
10 warning(
11 `${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`,
12 )
13 }
14}

Callers 2

wrapMapToPropsFuncFunction · 0.85
wrapMergePropsFuncFunction · 0.85

Calls 2

isPlainObjectFunction · 0.85
warningFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…