MCPcopy Index your code
hub / github.com/nodejs/node / extendStatics

Function extendStatics

test/fixtures/snapshot/typescript.js:80–85  ·  view source on GitHub ↗
(d, b)

Source from the content-addressed store, hash-verified

78};
79var __extends = (this && this.__extends) || (function () {
80 var extendStatics = function (d, b) {
81 extendStatics = Object.setPrototypeOf ||
82 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
83 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
84 return extendStatics(d, b);
85 };
86 return function (d, b) {
87 if (typeof b !== "function" && b !== null)
88 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");

Callers 1

typescript.jsFile · 0.85

Calls 1

callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…