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

Function assertDefined

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

Source from the content-addressed store, hash-verified

343 if(!condition)throw TypeError(msg2 ? msg1 + msg2 : msg1);
344}
345function assertDefined(it){
346 if(it == undefined)throw TypeError('Function called on null or undefined');
347 return it;
348}
349function assertFunction(it){
350 assert(isFunction(it), it, ' is not a function!');
351 return it;

Callers 5

toObjectFunction · 0.85
polyfill.jsFile · 0.85
createArrayMethodFunction · 0.85
createPointAtFunction · 0.85
getCollectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected