MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / assertObject

Function assertObject

lib/web/polyfill.js:353–356  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

351 return it;
352}
353function assertObject(it){
354 assert(isObject(it), it, ' is not an object!');
355 return it;
356}
357function assertInstance(it, Constructor, name){
358 assert(it instanceof Constructor, name, ": use the 'new' operator!");
359}

Callers 8

ownKeysFunction · 0.85
getIteratorFunction · 0.85
polyfill.jsFile · 0.85
getConstructorFunction · 0.85
defWeakFunction · 0.85
wrapFunction · 0.85
reflectGetFunction · 0.85
reflectSetFunction · 0.85

Calls 2

assertFunction · 0.85
isObjectFunction · 0.70

Tested by

no test coverage detected