How to use the range function from moment

Find comprehensive JavaScript moment.range code examples handpicked from public code repositorys.

352
353
354
355
356
357
358
359
360
361
362
363
moment.range.constructor = DateRange;


/**
 * @deprecated
 */
moment.fn.range = moment.range;


/**
 * Check if the current moment is within a given date range.
 *
fork icon0
star icon0
watch icon1