simple-deep-copy
Deep copy objects and arrays
Make a simple deep copy of an array or object. This will not work on dates, regexes and potentially other types of objects. If you want something which covers everything, use this
Install
$ npm install simple-deep-copy
Usage
const simpleDeepCopy = ; const originalArray = lang: "JavaScript" lang: "Elm" lang: "Rust" ;const newArray = ; newArray1lang = "Elixir"//=> 'Elixir' originalArray1lang//=> 'Elm'
License
MIT © Carl Mungazi