Rocky_Mountain_Vending/.pnpm-store/v10/files/06/a2ff0976498c6a29856db9169c12d9afee98a1514ade59f4d6ce15f022599dc733642f5caa7e5746d56a7f43aac7e9b89794cef8fe8ddb7dd2b6714e76f7a2
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

12 lines
339 B
Text

import none from "./none.js";
export default function(series) {
var peaks = series.map(peak);
return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });
}
function peak(series) {
var i = -1, j = 0, n = series.length, vi, vj = -Infinity;
while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;
return j;
}