MCPcopy Create free account
hub / github.com/angular/dev-infra / __copyProps

Function __copyProps

github-actions/browserstack/set-browserstack-env.js:57–64  ·  view source on GitHub ↗
(to, from, except, desc)

Source from the content-addressed store, hash-verified

55 __defProp(target, name, { get: all[name], enumerable: true });
56 };
57 var __copyProps = (to, from, except, desc) => {
58 if (from && typeof from === "object" || typeof from === "function") {
59 for (let key of __getOwnPropNames(from))
60 if (!__hasOwnProp.call(to, key) && key !== except)
61 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
62 }
63 return to;
64 };
65 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
66 // If the importer is in node compatibility mode or this is not an ESM
67 // file that has been converted to a CommonJS file using a Babel-

Callers 1

__toESMFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected