MCPcopy Create free account
hub / github.com/effector/effector / assertObject

Function assertObject

src/effector/is.ts:16–20  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

14export const isVoid = (value: unknown): value is void => value === undefined
15
16export const assertObject = (value: unknown) =>
17 assert(
18 isObject(value) || isFunction(value),
19 'expect first argument be an object',
20 ) // or function
21
22const assertNodeSetItem = (
23 value: unknown,

Callers 3

initUnitFunction · 0.90
processArgsToConfigFunction · 0.90
fromObservableFunction · 0.90

Calls 3

assertFunction · 0.90
isObjectFunction · 0.85
isFunctionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…