PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@polkadot/util/cjs/object
Просмотр файла: spread.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.objectSpread = objectSpread;
/**
* @name objectSpread
* @summary Concats all sources into the destination
*/
function objectSpread(dest, ...sources) {
for (let i = 0, count = sources.length; i < count; i++) {
const src = sources[i];
if (src) {
if (typeof src.entries === 'function') {
for (const [key, value] of src.entries()) {
dest[key] = value;
}
}
else {
Object.assign(dest, src);
}
}
}
return dest;
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!