Rocky_Mountain_Vending/.pnpm-store/v10/files/d6/fbb5b9ce975c10f8e008e6b694d3ee51d4ac612a7a346d0eddeb1e9f3370ddccfc300dd678117a1c50191f5e351dbca380c7c375b42c6257f8517d71d326be
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

20 lines
No EOL
689 B
Text

import { EMPTY } from '../observable/empty';
import { operate } from '../util/lift';
import { createOperatorSubscriber } from './OperatorSubscriber';
export function take(count) {
return count <= 0
?
function () { return EMPTY; }
: operate(function (source, subscriber) {
var seen = 0;
source.subscribe(createOperatorSubscriber(subscriber, function (value) {
if (++seen <= count) {
subscriber.next(value);
if (count <= seen) {
subscriber.complete();
}
}
}));
});
}
//# sourceMappingURL=take.js.map