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

Function __rest

tslib.es6.js:43–53  ·  view source on GitHub ↗
(s, e)

Source from the content-addressed store, hash-verified

41}
42
43export function __rest(s, e) {
44 var t = {};
45 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
46 t[p] = s[p];
47 if (s != null && typeof Object.getOwnPropertySymbols === "function")
48 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
49 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
50 t[p[i]] = s[p[i]];
51 }
52 return t;
53}
54
55export function __decorate(decorators, target, key, desc) {
56 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…