'use strict';

/*!
 * @techmely/utils
 * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
 * MIT Licensed
 */


// src/isNotNullish.ts
function isNotNullish(v) {
  return v != null;
}

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

exports.mapObject = mapObject;
