+9
@@ -0,0 +1,9 @@
|
||||
import { constructFrom } from "../constructFrom.js";
|
||||
|
||||
export function normalizeDates(context, ...dates) {
|
||||
const normalize = constructFrom.bind(
|
||||
null,
|
||||
context || dates.find((date) => typeof date === "object"),
|
||||
);
|
||||
return dates.map(normalize);
|
||||
}
|
||||
Reference in New Issue
Block a user