This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/core-js/modules/_object-define.js

14 lines
387 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
var dP = require('./_object-dp');
var gOPD = require('./_object-gopd');
var ownKeys = require('./_own-keys');
var toIObject = require('./_to-iobject');
module.exports = function define(target, mixin) {
var keys = ownKeys(toIObject(mixin));
var length = keys.length;
var i = 0;
var key;
while (length > i) dP.f(target, key = keys[i++], gOPD.f(mixin, key));
return target;
};