clone
Basic usage
Creates a shallow copy of the given object/value.
import { clone } from 'radash'
const ra = { name: 'Ra', power: 100}
const gods = [ra]
clone(ra) // => copy of raclone(gods) // => copy of gods
Creates a shallow copy of the given object/value.
import { clone } from 'radash'
const ra = { name: 'Ra', power: 100}
const gods = [ra]
clone(ra) // => copy of raclone(gods) // => copy of gods