Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment clone

var a = moment([2012]);
var b = a.clone();
a.year(2000);
b.year(); // 2012
Source by momentjscom.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #moment #clone
ADD COMMENT
Topic
Name
3+3 =