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

Package detail

plain-object-clone

fabiospampinato14.4kMIT2.0.1TypeScript support: included

Extremely fast function optimized for deep cloning json-serializable plain objects.

fast, plain, object, deep, clone

readme

Plain Object Clone

Extremely fast function optimized for deep cloning json-serializable plain objects.

Install

npm install plain-object-clone

Usage

import clone from 'plain-object-clone';

// Let's clone an object

clone ({ foo: 123 }); // => { foo: 123 }

License

MIT © Fabio Spampinato