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.

11 lines (9 loc) 181 B
const { entries } = Object module.exports = (obj, mapper) => entries(obj).reduce( (acc, [key, value]) => ({ ...acc, [key]: mapper(value, key), }), {} )