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

Function emptyObj

lib/web/tern/def.js:379–384  ·  view source on GitHub ↗
(ctor)

Source from the content-addressed store, hash-verified

377 }
378
379 function emptyObj(ctor) {
380 var empty = Object.create(ctor.prototype);
381 empty.props = Object.create(null);
382 empty.isShell = true;
383 return empty;
384 }
385
386 function isSimpleAnnotation(spec) {
387 if (!spec["!type"] || /^(fn\(|\[|\+)/.test(spec["!type"])) return false;

Callers 1

passOneFunction · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected