Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment min

var a = moment().subtract(1, 'day');
var b = moment().add(1, 'day');
moment.min(a, b);  // a
moment.min([a, b]); // a
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment #min
ADD COMMENT
Topic
Name
8+7 =