mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 09:39:58 +00:00
Initial commit
This commit is contained in:
11
ext/src/lib/utils.js
Normal file
11
ext/src/lib/utils.js
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
export function cloneIntoWithProto (obj, destination) {
|
||||
const ret = cloneInto(obj, destination);
|
||||
|
||||
for (const key of Object.getOwnPropertyNames(obj.__proto__)) {
|
||||
exportFunction(obj.__proto__[key].bind(obj), ret, { defineAs: key });
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user