Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Latest commit

 

History

History
48 lines (39 loc) · 1.98 KB

clone.md

File metadata and controls

48 lines (39 loc) · 1.98 KB

Object Agent

A javascript library for working with objects

npm build coverage deps size vulnerabilities license


clone(value, [settings]) ⇒ *

Deep clone a value.

Param Type Default Description
value *
[settings] Object
[settings.ignoreKeys] Array, String Any keys in this array will not be cloned
[settings.isCircular] Boolean false If true then circular references will be handled

Example

import { clone } from 'object-agent';

clone({ a: 'b', c: 'd' });
// => { a: 'b', c: 'd' }