shravan20 / flare.ts

A powerful utility library for clean code in js (npm package)
https://shravan20.github.io/flare.ts
MIT License
2 stars 6 forks source link

feat: Add Array/Map/WeakMap utils #11

Open shravan20 opened 11 months ago

shravan20 commented 11 months ago

Summary:

Introduce utility methods within the service to encapsulate and reuse repeated logics applied on arrays, weak maps, JSON objects, and maps. This will enhance code reusability and improve code readability within the service.

Motivation

Repetitive logic can lead to code duplication, decreased maintainability, and reduced readability. By centralizing these logics into utility methods, we can enhance code reuse, streamline codebase maintenance, and improve comprehension for developers working on the service.

Proposed Changes

Utility Methods:

Testing:

Expected Outcome

Upon successful implementation, the service will utilize utility methods for common logics on arrays, weak maps, JSON objects, and maps, resulting in a cleaner, more maintainable codebase.