Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
349 B
JavaScript
Executable File
21 lines
349 B
JavaScript
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;
|
|
};
|