@polkadot/util
Version:
A collection of useful utilities for @polkadot
13 lines (12 loc) • 353 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.objectCopy = void 0;
const spread_js_1 = require("./spread.js");
/**
* @name objectCopy
* @summary Creates a shallow clone of the input object
*/
function objectCopy(source) {
return (0, spread_js_1.objectSpread)({}, source);
}
exports.objectCopy = objectCopy;
;