1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-04-22 02:42:13 +00:00
Florian Bouillon fd24924d10
feat: introduce objectRemap function
This commit introduces a new function `objectRemap` in `object-util` package. It takes an object as input and applies the provided mapping function to each key-value pair. It produces a new object with transformed keys and values.

The `objectRemap` function is more advanced than `objectMap` as it transforms an object back into another object. It works on objects and arrays. If multiple keys are the same, only the last value will be set by default, but enabling the `strict` option will throw an error if the same key is set twice.

This commit also updates the import statement in tests for this new function.

Signed-off-by: Avior <f.bouillon@aptatio.com>
2023-03-14 10:54:46 +01:00
2021-09-29 19:41:17 +00:00
2022-04-05 12:21:23 +02:00
2020-07-06 11:08:49 +02:00
2021-07-10 19:05:03 +02:00
2021-04-11 01:37:35 +02:00
2022-04-05 12:21:23 +02:00
2020-07-01 10:48:43 +02:00
2023-02-22 16:32:20 +01:00
2022-04-05 12:21:23 +02:00
2021-07-10 19:05:03 +02:00

Libs

Collection of libraries for differents usages

codecov

Libraries

Config

Holder for my configurations used in most of my other repositories

DOM Manager

Library to manage the browser DOM easier

Easy Sitemap

Sitemap Builder

Listener

Custom implementation of the NodeJS Listener

Logger

A nicer console with support for theming and prefixes

Object Util

Functions that make it easier to manipulate objects

Queue

A async Queue system to do heavy work quicker

URL Manager

A complete URL parser/serializer

Description
Small Libs used on multiple projects
Readme MIT 4.1 MiB
Languages
TypeScript 99.8%
JavaScript 0.2%