import moment from 'moment' ; import { CalendarDay } from '../../calendar-day.interface' ; import { getNumberRange } from '../get-number-range/get-number-range.util' ; param active return export function getDaysForMonth ( active ) { return getNumberRange ( 1 , active . daysInMonth ( ) + 1 ) . map ( i => { const date = active . clone ( ) . date ( i ) ; const today = date . isSame ( new Date ( ) , 'day' ) ; return { num : date . date ( ) , dayOfWeek : date . day ( ) , date , today } ; } ) ; }