You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Readme.md 271 B

3 years ago
123456789101112131415161718192021222324252627
  1. # clone
  2. Object clone supporting `date`, `regexp`, `array` and `object` types.
  3. ## Example
  4. ```js
  5. var obj = clone({
  6. a: 'b',
  7. c: [
  8. new Date(),
  9. 'tobi',
  10. 'jane'
  11. ]
  12. })
  13. ```
  14. ## API
  15. ### clone(obj)
  16. Clones `obj` recursively and returns it.
  17. ## License
  18. MIT