MCPcopy Create free account
hub / github.com/microsoft/tslib / extendStatics

Function extendStatics

tslib.es6.mjs:17–22  ·  view source on GitHub ↗
(d, b)

Source from the content-addressed store, hash-verified

15/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
17var extendStatics = function(d, b) {
18 extendStatics = Object.setPrototypeOf ||
19 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
21 return extendStatics(d, b);
22};
23
24export function __extends(d, b) {
25 if (typeof b !== "function" && b !== null)

Callers 1

__extendsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…