Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

deepcopy-esm

electrovir81k(MIT or CC0 1.0)2.1.1TypeScript support: included

ESM compatible deepcopy

deep, copy, deepcopy, esm

readme

deepcopy-esm

This is a fully-ESM compatible version of the deepcopy package.

Install

npm i deepcopy-esm

Usage

This package exports the API a little bit differently than deepcopy does:

import {deepCopy} from 'deepcopy-esm';

const someObject = {};

const myCopy = deepCopy(someObject);

For all other docs, see https://www.npmjs.com/package/deepcopy directly.