timrwood/moment — Issue #56: Moments can't be cloned
Author: mhart
Created: 2011-11-12 05:58:58+00:00
State: open

This was unexpected for me:

```javascript
var first = moment('2011-11-11');
var second = moment(first);
first.add('days', 1);
second.valueOf() === first.valueOf(); // true!
```

The second line assigns the same `Date` object to the new moment, so whenever the first changes, the second does too.

This is a workaround:

```javascript
var second = moment(first.valueOf());
```

But it's not really intuitive. I think it'd be nice for the constructor to handle that for you - and/or add a `clone()` method.