Files
common/packages/util/src/object/copy.ts
T
2021-11-04 17:02:45 +02:00

9 lines
243 B
TypeScript

// Copyright 2017-2021 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { objectSpread } from './spread';
export function objectCopy <T extends object> (source: T): T {
return objectSpread({}, source);
}