What problem does it solve?
This collection provides reliable JavaScript utilities for common frontend tasks, addressing numeric precision, deep copying, and lightweight functional patterns to reduce boilerplate and avoid floating-point pitfalls.
Core Features & Use Cases
- Precise arithmetic: add, sub, mul, div with correct decimal behavior to prevent floating-point errors.
- Deep copy: robust duplication for nested objects and arrays, including special types like Date and RegExp.
- Object utilities: shallow/loose equality checks, path-based get, object merge and clone helpers.
- Currying and functional utilities: simple currying for partial application and function composition.
- Async helpers: lightweight promise wrappers and straightforward async orchestration patterns.
- Data transformation: small utilities for formatting and lightweight data manipulation.
Quick Start
Use the utils to perform common frontend tasks such as precise addition add('0.1','0.2') to obtain '0.3', or deepCopy(obj) to clone objects.