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
| ★ wanayoo — archive 1999 https://github.com/segmentio/clone | Nouvelle recherche | Portail wanayoo |
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
| Failed to load latest commit information. | |||
|
|
test | ||
|
|
.gitignore | ||
|
|
History.md | ||
|
|
Makefile | ||
|
|
Readme.md | ||
|
|
component.json | ||
|
|
index.js | ||
|
|
package.json | ||
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