⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
date-fns
/
min
/
View File Name :
index.js
var parse = require('../parse/index.js') /** * @category Common Helpers * @summary Return the earliest of the given dates. * * @description * Return the earliest of the given dates. * * @param {...(Date|String|Number)} dates - the dates to compare * @returns {Date} the earliest of the dates * * @example * // Which of these dates is the earliest? * var result = min( * new Date(1989, 6, 10), * new Date(1987, 1, 11), * new Date(1995, 6, 2), * new Date(1990, 0, 1) * ) * //=> Wed Feb 11 1987 00:00:00 */ function min () { var dirtyDates = Array.prototype.slice.call(arguments) var dates = dirtyDates.map(function (dirtyDate) { return parse(dirtyDate) }) var earliestTimestamp = Math.min.apply(null, dates) return new Date(earliestTimestamp) } module.exports = min