@ztimson/utils 0.27.7 → 0.27.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -271,6 +271,9 @@ ${opts.message || this.desc}`;
271
271
  });
272
272
  });
273
273
  }
274
+ function objectMap(obj, fn2) {
275
+ return Object.entries(obj).map(([key, value]) => [key, fn2(key, value)]).reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {});
276
+ }
274
277
  function JSONAttemptParse(json) {
275
278
  try {
276
279
  return JSON.parse(json);
@@ -2534,6 +2537,7 @@ ${opts.message || this.desc}`;
2534
2537
  exports2.mixin = mixin;
2535
2538
  exports2.month = month;
2536
2539
  exports2.numSuffix = numSuffix;
2540
+ exports2.objectMap = objectMap;
2537
2541
  exports2.pad = pad;
2538
2542
  exports2.parseUrl = parseUrl;
2539
2543
  exports2.pascalCase = pascalCase;