template-saas/apps/backend/node_modules/iterare/lib/map.js
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
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>
2026-01-07 04:41:24 -06:00

17 lines
500 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* An iterator that emits results by running each element through a provided predicate
*/
class MapIterator {
constructor(source, iteratee) {
this.source = source;
this.iteratee = iteratee;
}
next() {
const { value, done } = this.source.next();
return { value: !done && this.iteratee(value), done };
}
}
exports.MapIterator = MapIterator;
//# sourceMappingURL=map.js.map