@polkadot/util
Version:
A collection of useful utilities for @polkadot
12 lines (11 loc) • 324 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.objectCopy = objectCopy;
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);
}
;