UNPKG

@dtu-olp-2024/kafka-nocobase

Version:

A NocoBase plugin for Apache Kafka integration, supporting message publishing, topic management, and event-driven workflows. Built for the DTU GreenHope project.

10 lines (8 loc) 218 B
/** * @param {number} count * @param {(index: number) => T} [callback] * @template T */ const seq = (count, callback = x => x) => new Array(count).fill(0).map((_, index) => callback(index)) module.exports = seq