import { isNotNullish } from './chunk-DHTXH2FH.mjs';

// src/mapObject.ts
function mapObject(obj, fn) {
  return Object.fromEntries(
    Object.entries(obj).map(([k, v]) => fn(k, v)).filter(isNotNullish)
  );
}

export { mapObject };
