UNPKG

414 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.objectCopy = objectCopy;
7
8var _spread = require("./spread");
9
10// Copyright 2017-2022 @polkadot/util authors & contributors
11// SPDX-License-Identifier: Apache-2.0
12
13/**
14 * @name objectCopy
15 * @summary Creates a shallow clone of the input object
16 */
17function objectCopy(source) {
18 return (0, _spread.objectSpread)({}, source);
19}
\No newline at end of file