PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@cosmjs/stargate/node_modules/protobufjs/cli/node_modules/underscore/cjs
Просмотр файла: clone.js
var isObject = require('./isObject.js');
var isArray = require('./isArray.js');
var extend = require('./extend.js');
// Create a (shallow-cloned) duplicate of an object.
function clone(obj) {
if (!isObject(obj)) return obj;
return isArray(obj) ? obj.slice() : extend({}, obj);
}
module.exports = clone;
Выполнить команду
Для локальной разработки. Не используйте в интернете!