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>
20 lines
349 B
Text
Executable file
20 lines
349 B
Text
Executable file
'use strict';
|
|
|
|
const internals = {};
|
|
|
|
|
|
module.exports = internals.flatten = function (array, target) {
|
|
|
|
const result = target || [];
|
|
|
|
for (const entry of array) {
|
|
if (Array.isArray(entry)) {
|
|
internals.flatten(entry, result);
|
|
}
|
|
else {
|
|
result.push(entry);
|
|
}
|
|
}
|
|
|
|
return result;
|
|
};
|