README
clone
Object clone supporting date
, regexp
, array
and object
types.
Example
var obj = clone({
a: 'b',
c: [
new Date(),
'tobi',
'jane'
]
})
API
clone(obj)
Clones obj
recursively and returns it.
License
MIT
Object clone supporting `date`, `regexp`, `array` and `object` types.
<script type="module">
import componentClone from 'https://cdn.skypack.dev/component-clone';
</script>
Object clone supporting date
, regexp
, array
and object
types.
var obj = clone({
a: 'b',
c: [
new Date(),
'tobi',
'jane'
]
})
Clones obj
recursively and returns it.
MIT