@ramped/copy
v0.2.1
Published
Make a copy of an Array, Date, or Object.
Downloads
3
Readme
Ramped copy
Make a copy of an Array, Date, or Object.
Part of the ramped.js collection for functional programming.
Install
To add as a dependency to a Node.js project:
npm i @ramped/copy --save
Usage
copy = require('@ramped/copy')
original = {a: 1, b: {c: [2, 3]}}
duplicate = copy(original)
original.b = 0
duplicate.b.c[0]
// 2
Dependencies
None