clone-immutable
v1.0.1
Published
Creates an immutable clone of an input object.
Downloads
2
Readme
clone-immutable
Creates an immutable clone of an input object
Installation
yarn add clone-immutable
Usage
import cloneImmutable from 'clone-immutable';
const source = {
name: 'Borat',
};
const clone = cloneImmutable(source);
// no changes in clone is accepted