@polkadot/util
Version:
A collection of useful utilities for @polkadot
11 lines (10 loc) • 302 B
JavaScript
// Copyright 2017-2022 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { objectSpread } from "./spread.js";
/**
* @name objectCopy
* @summary Creates a shallow clone of the input object
*/
export function objectCopy(source) {
return objectSpread({}, source);
}