Skip to content
On this page

cloneDeep

You cannot clone the followings:

  • function
  • Symbol
  • WeakMap
  • WeakSet

Example

cloneDeep({ a: 0, b: [1, 2, 3] }) // => { a: 0, b: [1, 2, 3] }

Playground

const { cloneDeep } = require('rhodash')
cloneDeep({ a: 0, b: [1, 2, 3] }) // => { a: 0, b: [1, 2, 3] }