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>
15 lines
307 B
Text
15 lines
307 B
Text
export default function pairs(values, pairof = pair) {
|
|
const pairs = [];
|
|
let previous;
|
|
let first = false;
|
|
for (const value of values) {
|
|
if (first) pairs.push(pairof(previous, value));
|
|
previous = value;
|
|
first = true;
|
|
}
|
|
return pairs;
|
|
}
|
|
|
|
export function pair(a, b) {
|
|
return [a, b];
|
|
}
|