Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
No EOL
569 B
Text
28 lines
No EOL
569 B
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = max;
|
|
|
|
function max(values, valueof) {
|
|
let max;
|
|
|
|
if (valueof === undefined) {
|
|
for (const value of values) {
|
|
if (value != null && (max < value || max === undefined && value >= value)) {
|
|
max = value;
|
|
}
|
|
}
|
|
} else {
|
|
let index = -1;
|
|
|
|
for (let value of values) {
|
|
if ((value = valueof(value, ++index, values)) != null && (max < value || max === undefined && value >= value)) {
|
|
max = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
return max;
|
|
} |