UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

19 lines 604 B
/** * Converts a Date, string, or number to a Date object. * @param {Date} value - The value to convert. * @returns {Date} The Date object. */ export default function toDate(value: Date): Date; /** * Converts a string to a Date object. * @param {string} value - The value to convert. * @returns {Date} The Date object. */ export default function toDate(value: string): Date; /** * Converts a number to a Date object. * @param {number} value - The value to convert. * @returns {Date} The Date object. */ export default function toDate(value: number): Date; //# sourceMappingURL=toDate.d.ts.map