clone-immutable

1.0.1 • Public • Published

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

/clone-immutable/

    Package Sidebar

    Install

    npm i clone-immutable

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • milichev