(
context: ContextFn<Date> | undefined,
...dates: Array<DateArg<Date> & {}>
)
| 17 | ): Date[]; |
| 18 | |
| 19 | export function normalizeDates( |
| 20 | context: ContextFn<Date> | undefined, |
| 21 | ...dates: Array<DateArg<Date> & {}> |
| 22 | ) { |
| 23 | const normalize = constructFrom.bind( |
| 24 | null, |
| 25 | context || dates.find((date) => typeof date === "object"), |
| 26 | ); |
| 27 | return dates.map(normalize); |
| 28 | } |
no outgoing calls
no test coverage detected